[][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]

fn to_bytes(&self) -> ProtoResult<Vec<u8>>
[src]

Returns the object in binary form

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 Eq for EdnsOption
[src]

impl PartialOrd<EdnsOption> for EdnsOption
[src]

impl PartialEq<EdnsOption> for EdnsOption
[src]

impl Clone for EdnsOption
[src]

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

Performs copy-assignment from source. Read more

impl Debug for EdnsOption
[src]

impl Hash for EdnsOption
[src]

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

Auto Trait Implementations

impl Send for EdnsOption

impl Sync for EdnsOption

Blanket Implementations

impl<T> From for T
[src]

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, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

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

🔬 This is a nightly-only experimental API. (try_from)

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