pub struct TcpOptionsImpl;
Expand description
An implementation of OptionsImpl
for TCP options.
Trait Implementations§
Source§impl Clone for TcpOptionsImpl
impl Clone for TcpOptionsImpl
Source§fn clone(&self) -> TcpOptionsImpl
fn clone(&self) -> TcpOptionsImpl
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 TcpOptionsImpl
impl Debug for TcpOptionsImpl
Source§impl OptionLayout for TcpOptionsImpl
impl OptionLayout for TcpOptionsImpl
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 TcpOptionsImpl
impl OptionParseLayout for TcpOptionsImpl
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 TcpOptionsImpl
impl OptionsImpl for TcpOptionsImpl
impl Copy for TcpOptionsImpl
Auto Trait Implementations§
impl Freeze for TcpOptionsImpl
impl RefUnwindSafe for TcpOptionsImpl
impl Send for TcpOptionsImpl
impl Sync for TcpOptionsImpl
impl Unpin for TcpOptionsImpl
impl UnwindSafe for TcpOptionsImpl
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
.