Enum dns_parser::ResponseCode [] [src]

pub enum ResponseCode {
    NoError,
    FormatError,
    ServerFailure,
    NameError,
    NotImplemented,
    Refused,
}

The RCODE value according to RFC 1035

Variants

NoErrorFormatErrorServerFailureNameErrorNotImplementedRefused

Methods

impl ResponseCode
[src]

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

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, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Debug for ResponseCode
[src]

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

Formats the value using the given formatter.