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

pub enum EdnsOption {
    DAU(SupportedAlgorithms),
    DHU(SupportedAlgorithms),
    N3U(SupportedAlgorithms),
    Unknown(u16Vec<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(SupportedAlgorithms)DHU(SupportedAlgorithms)N3U(SupportedAlgorithms)Unknown(u16Vec<u8>)

Unknown, used to deal with unknown or unsupported codes

Methods

impl EdnsOption[src]

pub fn len(&self) -> u16[src]

Returns the length in bytes of the EdnsOption

pub fn is_empty(&self) -> bool[src]

Returns true if the length in bytes of the EdnsOption is 0

Trait Implementations

impl BinEncodable for EdnsOption[src]

default fn to_bytes(&self) -> Result<Vec<u8>, ProtoError>[src]

Returns the object in binary form

impl Clone for EdnsOption[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for EdnsOption[src]

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

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq<EdnsOption> for EdnsOption[src]

impl Eq for EdnsOption[src]

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

only the supported extensions are listed right now.

impl<'a> From<&'a EdnsOption> for EdnsCode[src]

impl PartialOrd<EdnsOption> for EdnsOption[src]

impl Debug for EdnsOption[src]

Auto Trait Implementations

impl Send for EdnsOption

impl Sync for EdnsOption

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T