Enum trust_dns_proto::op::op_code::OpCode [−][src]
pub enum OpCode { Query, Status, Notify, Update, }
Expand description
Operation code for queries, updates, and responses
RFC 1035, DOMAIN NAMES - IMPLEMENTATION AND SPECIFICATION, November 1987
OPCODE A four bit field that specifies kind of query in this
message. This value is set by the originator of a query
and copied into the response. The values are:
0 a standard query (QUERY)
1 an inverse query (IQUERY)
2 a server status request (STATUS)
3-15 reserved for future use
Variants
Expand description
Query request RFC 1035
Expand description
Status message RFC 1035
Expand description
Notify of change RFC 1996
Expand description
Update message RFC 2136
Implementations
impl OpCode
[src]
impl OpCode
[src]Convert from u8
to OpCode
use std::convert::From; use trust_dns_proto::op::op_code::OpCode; let var: OpCode = OpCode::from_u8(0).unwrap(); assert_eq!(OpCode::Query, var);
pub fn from_u8(value: u8) -> ProtoResult<Self>
[src]
pub fn from_u8(value: u8) -> ProtoResult<Self>
[src]Decodes the binary value of the OpCode
Trait Implementations
impl PartialOrd<OpCode> for OpCode
[src]
impl PartialOrd<OpCode> for OpCode
[src]fn partial_cmp(&self, other: &OpCode) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &OpCode) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for OpCode
[src]
impl StructuralPartialEq for OpCode
[src]
Auto Trait Implementations
impl RefUnwindSafe for OpCode
impl Send for OpCode
impl Sync for OpCode
impl Unpin for OpCode
impl UnwindSafe for OpCode
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,