[][src]Enum dnsparse::QueryClass

#[repr(u16)]pub enum QueryClass {
    IN,
    CS,
    CH,
    HS,
    Reserved,
}

The class of a DNS query.

According to RFC 1035 Section 3.2.4.

Variants

IN

Internet

CS

CSNET

CH

CHAOS

HS

Hesiod

Reserved

Implementations

impl QueryClass[src]

pub fn to_be_bytes(&self) -> [u8; 2][src]

Trait Implementations

impl Clone for QueryClass[src]

impl Copy for QueryClass[src]

impl Debug for QueryClass[src]

impl From<u16> for QueryClass[src]

impl PartialEq<QueryClass> for QueryClass[src]

impl StructuralPartialEq for QueryClass[src]

Auto Trait Implementations

impl Send for QueryClass

impl Sync for QueryClass

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