Enum resolve::message::OpCode [] [src]

pub enum OpCode {
    Query,
    Status,
    Notify,
    Update,
    Other(u8),
}

Represents the kind of message query.

Variants

Query

Query

Status

Status

Notify

Notify

Update

Update

Other(u8)

Unrecognized opcode

Methods

impl OpCode
[src]

fn from_u8(u: u8) -> OpCode

Converts a u8 to an OpCode.

fn to_u8(&self) -> u8

Converts an OpCode to a u8.

Trait Implementations

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 Eq for OpCode
[src]

impl Debug for OpCode
[src]

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

Formats the value using the given formatter.

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 Copy for OpCode
[src]