#[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
type Error = NeighbourError
Source§fn parse_with_param(
buf: &NlaBuffer<&'a T>,
address_family: AddressFamily,
) -> Result<Self, Self::Error>
fn parse_with_param( buf: &NlaBuffer<&'a T>, address_family: AddressFamily, ) -> Result<Self, Self::Error>
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
)