pub struct ControlOptionsImpl;
Expand description
Implementation of the IPCP control options parsing and serialization.
Trait Implementations§
Source§impl<'a> OptionsImpl<'a> for ControlOptionsImpl
impl<'a> OptionsImpl<'a> for ControlOptionsImpl
Source§impl OptionsImplLayout for ControlOptionsImpl
impl OptionsImplLayout for ControlOptionsImpl
Source§const END_OF_OPTIONS: Option<u8> = None
const END_OF_OPTIONS: Option<u8> = None
The End of options type (if one exists).
Source§const OPTION_LEN_MULTIPLIER: usize = 1usize
const OPTION_LEN_MULTIPLIER: usize = 1usize
The value to multiply read lengths by. Read more
Source§impl<'a> OptionsSerializerImpl<'a> for ControlOptionsImpl
impl<'a> OptionsSerializerImpl<'a> for ControlOptionsImpl
Source§type Option = ControlOption
type Option = ControlOption
The input type to this serializer. Read more
Source§fn get_option_length(option: &Self::Option) -> usize
fn get_option_length(option: &Self::Option) -> usize
Returns the serialized length, in bytes, of the given
option
. Read moreSource§fn get_option_kind(option: &Self::Option) -> u8
fn get_option_kind(option: &Self::Option) -> u8
Returns the wire value for this option kind.
Auto Trait Implementations§
impl Freeze for ControlOptionsImpl
impl RefUnwindSafe for ControlOptionsImpl
impl Send for ControlOptionsImpl
impl Sync for ControlOptionsImpl
impl Unpin for ControlOptionsImpl
impl UnwindSafe for ControlOptionsImpl
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<'a, O> RecordsSerializerImpl<'a> for Owhere
O: OptionsSerializerImpl<'a>,
impl<'a, O> RecordsSerializerImpl<'a> for Owhere
O: OptionsSerializerImpl<'a>,
Source§type Record = <O as OptionsSerializerImpl<'a>>::Option
type Record = <O as OptionsSerializerImpl<'a>>::Option
The input type to this serializer. Read more
Source§fn record_length(record: &<O as RecordsSerializerImpl<'a>>::Record) -> usize
fn record_length(record: &<O as RecordsSerializerImpl<'a>>::Record) -> usize
Provides the serialized length of a record. Read more