Trait domain::base::opt::CodeOptData

source ·
pub trait CodeOptData {
    const CODE: OptionCode;
}
Expand description

A type for an OPT option for a single specific option code.

If an option can only ever process a single option, it can simply implement Parse for parsing the data, Compose for composing the data, and this trait to state the option code. OptData and ParseOptData will then be available via blanket implementations.

Required Associated Constants§

source

const CODE: OptionCode

The option code for this option.

Implementors§

source§

impl CodeOptData for Expire

source§

const CODE: OptionCode = OptionCode::Expire

source§

impl CodeOptData for TcpKeepalive

source§

const CODE: OptionCode = OptionCode::TcpKeepalive

source§

impl CodeOptData for Padding

source§

const CODE: OptionCode = OptionCode::Padding

source§

impl CodeOptData for ClientSubnet

source§

const CODE: OptionCode = OptionCode::ClientSubnet

source§

const CODE: OptionCode = OptionCode::Cookie

source§

impl<Octets> CodeOptData for Nsid<Octets>

source§

const CODE: OptionCode = OptionCode::Nsid

source§

impl<Octets> CodeOptData for Dau<Octets>

source§

const CODE: OptionCode = OptionCode::Dau

source§

impl<Octets> CodeOptData for Dhu<Octets>

source§

const CODE: OptionCode = OptionCode::Dhu

source§

impl<Octets> CodeOptData for N3u<Octets>

source§

const CODE: OptionCode = OptionCode::N3u

source§

impl<Octets> CodeOptData for Chain<Octets>

source§

const CODE: OptionCode = OptionCode::Chain

source§

impl<Octets> CodeOptData for KeyTag<Octets>

source§

const CODE: OptionCode = OptionCode::KeyTag

source§

impl<Octets> CodeOptData for ExtendedError<Octets>

source§

const CODE: OptionCode = OptionCode::ExtendedError