pub enum NeighborUpdate {
Upsert(NeighborEntry),
SetState {
name: Name,
state: NeighborState,
},
AddFace {
name: Name,
face_id: FaceId,
mac: MacAddr,
iface: String,
},
RemoveFace {
name: Name,
face_id: FaceId,
},
UpdateRtt {
name: Name,
rtt_us: u32,
},
Remove(Name),
}Expand description
Mutation applied to the neighbor table via [DiscoveryContext::update_neighbor].
Variants§
Upsert(NeighborEntry)
Insert or replace a full entry.
SetState
Transition an existing entry to a new state.
AddFace
Add a face binding to an existing entry.
RemoveFace
Remove a face binding.
UpdateRtt
Record a measured RTT for an entry.
Remove(Name)
Remove the entry entirely.
Auto Trait Implementations§
impl !Freeze for NeighborUpdate
impl RefUnwindSafe for NeighborUpdate
impl Send for NeighborUpdate
impl Sync for NeighborUpdate
impl Unpin for NeighborUpdate
impl UnwindSafe for NeighborUpdate
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more