pub struct Ipv4OptionsImpl;
Expand description
An implementation of OptionsImpl
for IPv4 options.
Trait Implementations§
Source§impl Clone for Ipv4OptionsImpl
impl Clone for Ipv4OptionsImpl
Source§fn clone(&self) -> Ipv4OptionsImpl
fn clone(&self) -> Ipv4OptionsImpl
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 Ipv4OptionsImpl
impl Debug for Ipv4OptionsImpl
Source§impl OptionLayout for Ipv4OptionsImpl
impl OptionLayout for Ipv4OptionsImpl
Source§type KindLenField = u8
type KindLenField = u8
The type of the “kind” and “length” fields in an option. Read more
Source§const LENGTH_ENCODING: LengthEncoding = _
const LENGTH_ENCODING: LengthEncoding = _
The encoding of the length byte. Read more
Source§impl OptionParseLayout for Ipv4OptionsImpl
impl OptionParseLayout for Ipv4OptionsImpl
Source§const END_OF_OPTIONS: Option<u8>
const END_OF_OPTIONS: Option<u8>
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
.Source§impl OptionsImpl for Ipv4OptionsImpl
impl OptionsImpl for Ipv4OptionsImpl
Auto Trait Implementations§
impl Freeze for Ipv4OptionsImpl
impl RefUnwindSafe for Ipv4OptionsImpl
impl Send for Ipv4OptionsImpl
impl Sync for Ipv4OptionsImpl
impl Unpin for Ipv4OptionsImpl
impl UnwindSafe for Ipv4OptionsImpl
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§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
.