#[non_exhaustive]pub struct NeighbourDiscoveryUserOptionHeader {
pub interface_index: u32,
pub icmp_type: NeighbourDiscoveryIcmpType,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.interface_index: u32The index of this ND user option’s interface.
icmp_type: NeighbourDiscoveryIcmpTypeThe ICMP message type associated with this ND user option. As defined in RFC 792 for ICMPv4, and RFC 4443 for ICMPv6.
Implementations§
Source§impl NeighbourDiscoveryUserOptionHeader
impl NeighbourDiscoveryUserOptionHeader
pub fn new(interface_index: u32, icmp_type: NeighbourDiscoveryIcmpType) -> Self
Trait Implementations§
Source§impl Clone for NeighbourDiscoveryUserOptionHeader
impl Clone for NeighbourDiscoveryUserOptionHeader
Source§fn clone(&self) -> NeighbourDiscoveryUserOptionHeader
fn clone(&self) -> NeighbourDiscoveryUserOptionHeader
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<T: AsRef<[u8]>> Parseable<NeighbourDiscoveryUserOptionMessageBuffer<T>> for NeighbourDiscoveryUserOptionHeader
impl<T: AsRef<[u8]>> Parseable<NeighbourDiscoveryUserOptionMessageBuffer<T>> for NeighbourDiscoveryUserOptionHeader
type Error = DecodeError
Source§fn parse(
buf: &NeighbourDiscoveryUserOptionMessageBuffer<T>,
) -> Result<Self, DecodeError>
fn parse( buf: &NeighbourDiscoveryUserOptionMessageBuffer<T>, ) -> Result<Self, DecodeError>
Deserialize the current type.
Source§impl PartialEq for NeighbourDiscoveryUserOptionHeader
impl PartialEq for NeighbourDiscoveryUserOptionHeader
Source§fn eq(&self, other: &NeighbourDiscoveryUserOptionHeader) -> bool
fn eq(&self, other: &NeighbourDiscoveryUserOptionHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for NeighbourDiscoveryUserOptionHeader
impl StructuralPartialEq for NeighbourDiscoveryUserOptionHeader
Auto Trait Implementations§
impl Freeze for NeighbourDiscoveryUserOptionHeader
impl RefUnwindSafe for NeighbourDiscoveryUserOptionHeader
impl Send for NeighbourDiscoveryUserOptionHeader
impl Sync for NeighbourDiscoveryUserOptionHeader
impl Unpin for NeighbourDiscoveryUserOptionHeader
impl UnwindSafe for NeighbourDiscoveryUserOptionHeader
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