Enum dns_parser::QueryClass[][src]

pub enum QueryClass {
    IN,
    CS,
    CH,
    HS,
    Any,
}

The QCLASS value according to RFC 1035

Variants

IN

the Internet

CS

the CSNET class (Obsolete - used only for examples in some obsolete RFCs)

CH

the CHAOS class

HS

Hesiod [Dyer 87]

Any

Any class

Implementations

impl QueryClass[src]

pub fn parse(code: u16) -> Result<QueryClass, Error>[src]

Parse a query class code

Trait Implementations

impl Clone for QueryClass[src]

impl Copy for QueryClass[src]

impl Debug for QueryClass[src]

impl Eq for QueryClass[src]

impl PartialEq<QueryClass> for QueryClass[src]

impl StructuralEq for QueryClass[src]

impl StructuralPartialEq for QueryClass[src]

Auto Trait Implementations

impl RefUnwindSafe for QueryClass

impl Send for QueryClass

impl Sync for QueryClass

impl Unpin for QueryClass

impl UnwindSafe for QueryClass

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, 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.