Enum trust_dns::rr::rdata::opt::EdnsOption [] [src]

pub enum EdnsOption {
    DAU(SupportedAlgorithms),
    DHU(SupportedAlgorithms),
    N3U(SupportedAlgorithms),
    Unknown(u16, Vec<u8>),
}

options used to pass information about capabilities between client and server

note: Not all EdnsOptions are supported at this time.

http://www.iana.org/assignments/dns-parameters/dns-parameters.xhtml#dns-parameters-13

Variants

DAU
DHU
N3U
Unknown

Unknown, used to deal with unknown or unsupported codes

Methods

impl EdnsOption

fn len(&self) -> u16

Trait Implementations

impl<'a> From<(EdnsCode, &'a [u8])> for EdnsOption

only the supported extensions are listed right now.

fn from(value: (EdnsCode, &'a [u8])) -> EdnsOption

Derived Implementations

impl Hash for EdnsOption

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Clone for EdnsOption

fn clone(&self) -> EdnsOption

1.0.0fn clone_from(&mut self, source: &Self)

impl Eq for EdnsOption

impl PartialEq for EdnsOption

fn eq(&self, __arg_0: &EdnsOption) -> bool

fn ne(&self, __arg_0: &EdnsOption) -> bool

impl PartialOrd for EdnsOption

fn partial_cmp(&self, __arg_0: &EdnsOption) -> Option<Ordering>

fn lt(&self, __arg_0: &EdnsOption) -> bool

fn le(&self, __arg_0: &EdnsOption) -> bool

fn gt(&self, __arg_0: &EdnsOption) -> bool

fn ge(&self, __arg_0: &EdnsOption) -> bool

impl Debug for EdnsOption

fn fmt(&self, __arg_0: &mut Formatter) -> Result