pub struct ControlOptionsImpl;
Expand description
Implementation of the LCP control options parsing and serialization.
Trait Implementations§
Source§impl Clone for ControlOptionsImpl
impl Clone for ControlOptionsImpl
Source§fn clone(&self) -> ControlOptionsImpl
fn clone(&self) -> ControlOptionsImpl
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<'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.
impl Copy for ControlOptionsImpl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§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