#[non_exhaustive]pub enum NeighbourDiscoveryIcmpV6Type {
RouterSolicitation,
RouterAdvertisement,
NeighbourSolicitation,
NeighbourAdvertisement,
Redirect,
Other {
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§
Trait Implementations§
Source§impl Clone for NeighbourDiscoveryIcmpV6Type
impl Clone for NeighbourDiscoveryIcmpV6Type
Source§fn clone(&self) -> NeighbourDiscoveryIcmpV6Type
fn clone(&self) -> NeighbourDiscoveryIcmpV6Type
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 NeighbourDiscoveryIcmpV6Type
impl Debug for NeighbourDiscoveryIcmpV6Type
Source§impl PartialEq for NeighbourDiscoveryIcmpV6Type
impl PartialEq for NeighbourDiscoveryIcmpV6Type
Source§fn eq(&self, other: &NeighbourDiscoveryIcmpV6Type) -> bool
fn eq(&self, other: &NeighbourDiscoveryIcmpV6Type) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for NeighbourDiscoveryIcmpV6Type
impl Eq for NeighbourDiscoveryIcmpV6Type
impl StructuralPartialEq for NeighbourDiscoveryIcmpV6Type
Auto Trait Implementations§
impl Freeze for NeighbourDiscoveryIcmpV6Type
impl RefUnwindSafe for NeighbourDiscoveryIcmpV6Type
impl Send for NeighbourDiscoveryIcmpV6Type
impl Sync for NeighbourDiscoveryIcmpV6Type
impl Unpin for NeighbourDiscoveryIcmpV6Type
impl UnsafeUnpin for NeighbourDiscoveryIcmpV6Type
impl UnwindSafe for NeighbourDiscoveryIcmpV6Type
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