pub struct NeighborChange {
pub interface: String,
pub interface_alias: Option<String>,
pub kind: NeighborChangeKind,
pub neighbor: Option<Neighbor>,
}Expand description
One neighbor-table change, as pushed by crate::Subscription
(NOTIFICATION, after a SUBSCRIBE).
lldpd sends one of these per changed neighbor on any interface - the
protocol has no per-interface filtering, so check interface yourself if
you only care about some of them.
Fields§
§interface: String§interface_alias: Option<String>§kind: NeighborChangeKind§neighbor: Option<Neighbor>The neighbor this change is about. Upstream always populates this in
practice (see src/daemon/lldpd.c’s three call sites of
levent_ctl_notify), but nothing in the protocol requires it, so
this stays an Option rather than asserting it’s always present.
Trait Implementations§
Source§impl Clone for NeighborChange
impl Clone for NeighborChange
Source§fn clone(&self) -> NeighborChange
fn clone(&self) -> NeighborChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NeighborChange
impl Debug for NeighborChange
impl Eq for NeighborChange
Source§impl PartialEq for NeighborChange
impl PartialEq for NeighborChange
impl StructuralPartialEq for NeighborChange
Auto Trait Implementations§
impl Freeze for NeighborChange
impl RefUnwindSafe for NeighborChange
impl Send for NeighborChange
impl Sync for NeighborChange
impl Unpin for NeighborChange
impl UnsafeUnpin for NeighborChange
impl UnwindSafe for NeighborChange
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