pub struct NdpOptionsImpl;
Expand description
An implementation of [OptionsImpl
] for NDP options.
Trait Implementations§
Source§impl Debug for NdpOptionsImpl
impl Debug for NdpOptionsImpl
Source§impl<'a> OptionLayout for NdpOptionsImpl
impl<'a> OptionLayout for NdpOptionsImpl
Source§const LENGTH_ENCODING: LengthEncoding
const LENGTH_ENCODING: LengthEncoding
The encoding of the length byte. Read more
Source§type KindLenField = u8
type KindLenField = u8
The type of the “kind” and “length” fields in an option. Read more
Source§impl OptionParseLayout for NdpOptionsImpl
impl OptionParseLayout for NdpOptionsImpl
Auto Trait Implementations§
impl Freeze for NdpOptionsImpl
impl RefUnwindSafe for NdpOptionsImpl
impl Send for NdpOptionsImpl
impl Sync for NdpOptionsImpl
impl Unpin for NdpOptionsImpl
impl UnwindSafe for NdpOptionsImpl
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more§impl<O> MeasureRecordsImpl for Owhere
O: OptionsImpl,
impl<O> MeasureRecordsImpl for Owhere
O: OptionsImpl,
§fn measure_next_record<'a, BV>(
data: &BV,
_context: &mut <O as RecordsImplLayout>::Context,
) -> Result<MeasuredRecord, <O as RecordsImplLayout>::Error>where
BV: BufferView<&'a [u8]>,
fn measure_next_record<'a, BV>(
data: &BV,
_context: &mut <O as RecordsImplLayout>::Context,
) -> Result<MeasuredRecord, <O as RecordsImplLayout>::Error>where
BV: BufferView<&'a [u8]>,
Returns the length in bytes of the next record.
§impl<O> RecordsImpl for Owhere
O: OptionsImpl,
impl<O> RecordsImpl for Owhere
O: OptionsImpl,
§type Record<'a> = <O as OptionsImpl>::Option<'a>
type Record<'a> = <O as OptionsImpl>::Option<'a>
The type of a single record; the output from the
parse_with_context
function. Read more