Trait OptionParseLayout

Source
pub trait OptionParseLayout: OptionLayout {
    type Error: OptionParseError;

    const END_OF_OPTIONS: Option<Self::KindLenField>;
    const NOP: Option<Self::KindLenField>;
}
Expand description

Information about an option’s layout required in order to parse it.

Required Associated Constants§

Source

const END_OF_OPTIONS: Option<Self::KindLenField>

The End of options kind (if one exists).

Source

const NOP: Option<Self::KindLenField>

The No-op kind (if one exists).

Required Associated Types§

Source

type Error: OptionParseError

The type of errors that may be returned by a call to OptionsImpl::parse.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

impl OptionParseLayout for NdpOptionsImpl

impl OptionParseLayout for Ipv4OptionsImpl

impl OptionParseLayout for TcpOptionsImpl