[][src]Enum toluol::DnsClass

pub enum DnsClass {
    IN,
    CH,
    HS,
    NONE,
    ANY,
}

Represents a DNS CLASS. See RFC 1035 for further information. Other classes than IN and ANY are included only for completeness and historical reasons.

Variants

IN
CH
HS
NONE
ANY

Implementations

impl DnsClass[src]

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

Encodes a DnsClass as a two-byte value.

pub fn parse(val: u16) -> Result<DnsClass, ParseError>[src]

Parses an encoded DnsClass from a two-byte value. Returns an error if the given value does not represent a valid DNS CLASS.

Trait Implementations

impl Clone for DnsClass[src]

impl Copy for DnsClass[src]

impl Debug for DnsClass[src]

impl Display for DnsClass[src]

impl PartialEq<DnsClass> for DnsClass[src]

impl StructuralPartialEq for DnsClass[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = Infallible

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<V, T> VZip<V> for T where
    V: MultiLane<T>,