Enum dns_parser::ResponseCode [] [src]

pub enum ResponseCode {
    NoError,
    FormatError,
    ServerFailure,
    NameError,
    NotImplemented,
    Refused,
    Reserved(u8),
}

The RCODE value according to RFC 1035

Variants

NoErrorFormatErrorServerFailureNameErrorNotImplementedRefusedReserved(u8)

Trait Implementations

impl Copy for ResponseCode
[src]

impl Clone for ResponseCode
[src]

fn clone(&self) -> ResponseCode

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

impl PartialEq for ResponseCode
[src]

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

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

fn ne(&self, __arg_0: &ResponseCode) -> bool

This method tests for !=.

impl Debug for ResponseCode
[src]

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

Formats the value using the given formatter.

impl From<u8> for ResponseCode
[src]

fn from(code: u8) -> ResponseCode

Performs the conversion.

impl Into<u8> for ResponseCode
[src]

fn into(self) -> u8

Performs the conversion.