Enum dns_parser::Class [] [src]

pub enum Class {
    IN,
    CS,
    CH,
    HS,
}

The CLASS 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]

Methods

impl Class
[src]

fn parse(code: u16) -> Result<ClassError>

Trait Implementations

impl Copy for Class
[src]

impl Clone for Class
[src]

fn clone(&self) -> Class

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Eq for Class
[src]

impl PartialEq for Class
[src]

fn eq(&self, __arg_0: &Class) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Debug for Class
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.