#[non_exhaustive]pub struct NeighbourDiscoveryUserOptionMessage {
pub header: NeighbourDiscoveryUserOptionHeader,
pub option_body: Vec<u8>,
pub attributes: Vec<Nla>,
}
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.header: NeighbourDiscoveryUserOptionHeader
The header of the ND_USEROPT message.
option_body: Vec<u8>
The body of the NDP option as it was on the wire.
attributes: Vec<Nla>
Implementations§
Trait Implementations§
Source§impl Clone for NeighbourDiscoveryUserOptionMessage
impl Clone for NeighbourDiscoveryUserOptionMessage
Source§fn clone(&self) -> NeighbourDiscoveryUserOptionMessage
fn clone(&self) -> NeighbourDiscoveryUserOptionMessage
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 Emitable for NeighbourDiscoveryUserOptionMessage
impl Emitable for NeighbourDiscoveryUserOptionMessage
Source§impl<'a, T: AsRef<[u8]> + 'a> Parseable<NeighbourDiscoveryUserOptionMessageBuffer<&'a T>> for NeighbourDiscoveryUserOptionMessage
impl<'a, T: AsRef<[u8]> + 'a> Parseable<NeighbourDiscoveryUserOptionMessageBuffer<&'a T>> for NeighbourDiscoveryUserOptionMessage
type Error = NeighbourDiscoveryUserOptionError
Source§fn parse(
buf: &NeighbourDiscoveryUserOptionMessageBuffer<&'a T>,
) -> Result<Self, NeighbourDiscoveryUserOptionError>
fn parse( buf: &NeighbourDiscoveryUserOptionMessageBuffer<&'a T>, ) -> Result<Self, NeighbourDiscoveryUserOptionError>
Deserialize the current type.
Source§impl PartialEq for NeighbourDiscoveryUserOptionMessage
impl PartialEq for NeighbourDiscoveryUserOptionMessage
Source§fn eq(&self, other: &NeighbourDiscoveryUserOptionMessage) -> bool
fn eq(&self, other: &NeighbourDiscoveryUserOptionMessage) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl Eq for NeighbourDiscoveryUserOptionMessage
impl StructuralPartialEq for NeighbourDiscoveryUserOptionMessage
Auto Trait Implementations§
impl Freeze for NeighbourDiscoveryUserOptionMessage
impl RefUnwindSafe for NeighbourDiscoveryUserOptionMessage
impl Send for NeighbourDiscoveryUserOptionMessage
impl Sync for NeighbourDiscoveryUserOptionMessage
impl Unpin for NeighbourDiscoveryUserOptionMessage
impl UnwindSafe for NeighbourDiscoveryUserOptionMessage
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
)