domain::base::opt

Trait 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>