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
Source§const END_OF_OPTIONS: Option<u8> = None
const END_OF_OPTIONS: Option<u8> = None
The End of options kind (if one exists).
Source§type Error = OptionParseErr
type Error = OptionParseErr
The type of errors that may be returned by a call to
OptionsImpl::parse
.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 moreSource§impl<O> MeasureRecordsImpl for Owhere
O: OptionsImpl,
impl<O> MeasureRecordsImpl for Owhere
O: OptionsImpl,
Source§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.
Source§impl<O> RecordsImpl for Owhere
O: OptionsImpl,
impl<O> RecordsImpl for Owhere
O: OptionsImpl,
Source§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 moreSource§fn parse_with_context<'a, BV>(
data: &mut BV,
_context: &mut <O as RecordsImplLayout>::Context,
) -> Result<ParsedRecord<<O as RecordsImpl>::Record<'a>>, <O as RecordsImplLayout>::Error>where
BV: BufferView<&'a [u8]>,
fn parse_with_context<'a, BV>(
data: &mut BV,
_context: &mut <O as RecordsImplLayout>::Context,
) -> Result<ParsedRecord<<O as RecordsImpl>::Record<'a>>, <O as RecordsImplLayout>::Error>where
BV: BufferView<&'a [u8]>,
Parses a record with some context. Read more
Source§impl<O> RecordsImplLayout for Owhere
O: OptionsImpl,
impl<O> RecordsImplLayout for Owhere
O: OptionsImpl,
Source§type Context = ()
type Context = ()
A context type that can be used to maintain state while parsing multiple
records.
Source§type Error = <O as OptionParseLayout>::Error
type Error = <O as OptionParseLayout>::Error
The type of errors that may be returned by a call to
RecordsImpl::parse_with_context
.