Enum resolve::message::OpCode
[−]
[src]
pub enum OpCode {
Query,
Status,
Notify,
Update,
Other(u8),
}Represents the kind of message query.
Variants
QueryQuery
StatusStatus
NotifyNotify
UpdateUpdate
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]
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