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

pub enum EdnsOption {
    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

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]

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

only the supported extensions are listed right now.

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

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

impl Clone for EdnsOption[src]

impl Eq for EdnsOption[src]

impl PartialEq<EdnsOption> for EdnsOption[src]

impl PartialOrd<EdnsOption> for EdnsOption[src]

impl Debug for EdnsOption[src]

impl Hash for EdnsOption[src]

impl StructuralPartialEq for EdnsOption[src]

impl StructuralEq for EdnsOption[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = !

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,