Trait domain::base::opt::OptData

source ·
pub trait OptData {
    // Required method
    fn code(&self) -> OptionCode;
}
Expand description

A type representing an OPT option.

The type needs to be able to report the option code to use for the encoding via the code method.

Required Methods§

source

fn code(&self) -> OptionCode

Returns the option code associated with this option.

Implementors§

source§

impl OptData for Expire

source§

impl OptData for TcpKeepalive

source§

impl OptData for ClientSubnet

source§

impl<Name> OptData for Chain<Name>

source§

impl<Octs> OptData for ExtendedError<Octs>

source§

impl<Octs> OptData for Padding<Octs>

source§

impl<Octs, Name> OptData for AllOptData<Octs, Name>

source§

impl<Octs: AsRef<[u8]>> OptData for UnknownOptData<Octs>

source§

impl<Octs: ?Sized> OptData for Understood<DauVariant, Octs>

source§

impl<Octs: ?Sized> OptData for Understood<DhuVariant, Octs>

source§

impl<Octs: ?Sized> OptData for Understood<N3uVariant, Octs>

source§

impl<Octs: ?Sized> OptData for KeyTag<Octs>

source§

impl<Octs: ?Sized> OptData for Nsid<Octs>