#[non_exhaustive]pub enum NeighbourAttribute {
Show 13 variants
Destination(NeighbourAddress),
LinkLocalAddress(Vec<u8>),
CacheInfo(NeighbourCacheInfo),
Probes(u32),
Vlan(u16),
Port(u16),
Vni(u32),
IfIndex(u32),
Controller(u32),
LinkNetNsId(u32),
SourceVni(u32),
Protocol(RouteProtocol),
Other(DefaultNla),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Destination(NeighbourAddress)
LinkLocalAddress(Vec<u8>)
CacheInfo(NeighbourCacheInfo)
Probes(u32)
Vlan(u16)
Port(u16)
Vni(u32)
IfIndex(u32)
Controller(u32)
LinkNetNsId(u32)
SourceVni(u32)
Protocol(RouteProtocol)
Other(DefaultNla)
Trait Implementations§
source§impl Clone for NeighbourAttribute
impl Clone for NeighbourAttribute
source§fn clone(&self) -> NeighbourAttribute
fn clone(&self) -> NeighbourAttribute
Returns a copy of the value. Read more
1.0.0 · 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 NeighbourAttribute
impl Debug for NeighbourAttribute
source§impl Nla for NeighbourAttribute
impl Nla for NeighbourAttribute
source§impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<NlaBuffer<&'a T>, AddressFamily> for NeighbourAttribute
impl<'a, T: AsRef<[u8]> + ?Sized> ParseableParametrized<NlaBuffer<&'a T>, AddressFamily> for NeighbourAttribute
source§fn parse_with_param(
buf: &NlaBuffer<&'a T>,
address_family: AddressFamily,
) -> Result<Self, DecodeError>
fn parse_with_param( buf: &NlaBuffer<&'a T>, address_family: AddressFamily, ) -> Result<Self, DecodeError>
Deserialize the current type.
source§impl PartialEq for NeighbourAttribute
impl PartialEq for NeighbourAttribute
impl Eq for NeighbourAttribute
impl StructuralPartialEq for NeighbourAttribute
Auto Trait Implementations§
impl Freeze for NeighbourAttribute
impl RefUnwindSafe for NeighbourAttribute
impl Send for NeighbourAttribute
impl Sync for NeighbourAttribute
impl Unpin for NeighbourAttribute
impl UnwindSafe for NeighbourAttribute
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)