Enum dns_parser::Opcode [] [src]

pub enum Opcode {
    StandardQuery,
    InverseQuery,
    ServerStatusRequest,
    Reserved(u16),
}

The OPCODE value according to RFC 1035

Variants

StandardQueryInverseQueryServerStatusRequestReserved(u16)

Trait Implementations

impl Copy for Opcode
[src]

impl Clone for Opcode
[src]

fn clone(&self) -> Opcode

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

impl PartialEq for Opcode
[src]

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

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

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

This method tests for !=.

impl Debug for Opcode
[src]

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

Formats the value using the given formatter.

impl From<u16> for Opcode
[src]

fn from(code: u16) -> Opcode

Performs the conversion.

impl Into<u16> for Opcode
[src]

fn into(self) -> u16

Performs the conversion.