#[non_exhaustive]pub enum NeighbourDiscoveryIcmpType {
Inet(NeighbourDiscoveryIcmpV4Type),
Inet6(NeighbourDiscoveryIcmpV6Type),
Other {
family: AddressFamily,
type_: u8,
code: u8,
},
}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.
Implementations§
Source§impl NeighbourDiscoveryIcmpType
impl NeighbourDiscoveryIcmpType
pub fn family(&self) -> AddressFamily
pub fn into_type_and_code(self) -> (u8, u8)
Trait Implementations§
Source§impl Clone for NeighbourDiscoveryIcmpType
impl Clone for NeighbourDiscoveryIcmpType
Source§fn clone(&self) -> NeighbourDiscoveryIcmpType
fn clone(&self) -> NeighbourDiscoveryIcmpType
Returns a duplicate 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 NeighbourDiscoveryIcmpType
impl Debug for NeighbourDiscoveryIcmpType
impl Copy for NeighbourDiscoveryIcmpType
impl Eq for NeighbourDiscoveryIcmpType
impl StructuralPartialEq for NeighbourDiscoveryIcmpType
Auto Trait Implementations§
impl Freeze for NeighbourDiscoveryIcmpType
impl RefUnwindSafe for NeighbourDiscoveryIcmpType
impl Send for NeighbourDiscoveryIcmpType
impl Sync for NeighbourDiscoveryIcmpType
impl Unpin for NeighbourDiscoveryIcmpType
impl UnsafeUnpin for NeighbourDiscoveryIcmpType
impl UnwindSafe for NeighbourDiscoveryIcmpType
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