pub enum DnsOpCode {
Query,
InverseQuery,
Status,
Reserved(u8),
}
Expand description
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§
Implementations§
Trait Implementations§
impl Copy for DnsOpCode
impl Eq for DnsOpCode
impl StructuralPartialEq for DnsOpCode
Auto Trait Implementations§
impl Freeze for DnsOpCode
impl RefUnwindSafe for DnsOpCode
impl Send for DnsOpCode
impl Sync for DnsOpCode
impl Unpin for DnsOpCode
impl UnwindSafe for DnsOpCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more