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 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 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
§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§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 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