Trait domain::base::opt::OptData[][src]

pub trait OptData: Compose + Sized {
    fn code(&self) -> OptionCode;
}

A type representing an OPT option.

The type needs to be able to construct the encoded option data via the Compose trait. In addition, it needs to be able report the option code to use for the encoding via the code method.

Required methods

fn code(&self) -> OptionCode[src]

Returns the option code associated with this option.

Loading content...

Implementors

impl<Octets: AsRef<[u8]>> OptData for AllOptData<Octets>[src]

impl<Octets: AsRef<[u8]>> OptData for UnknownOptData<Octets>[src]

impl<T: CodeOptData + Compose> OptData for T[src]

Loading content...