pub struct Opcode(/* private fields */);Expand description
DNS message operation codes.
The Opcode tells the server what the client wants it to do. The vast majority of
messages use Opcode::QUERY to indicate that the message is either a DNS query or a
response to a query.
Implementations§
Source§impl Opcode
impl Opcode
Sourcepub const QUERY: Opcode
pub const QUERY: Opcode
Query (or response to a query).
A client sends a message with this opcode and at least one entry in the Question section to retrieve information (resource records) associated with a domain name. The server will reply with a message with this opcode, a copy of the client’s Question section, and an Answer section containing the requested resource records.
Sourcepub const IQUERY: Opcode
pub const IQUERY: Opcode
Inverse Query (or response to an inverse query).
This feature is optional and servers might not support it.
A client sends a message with this opcode and at least one entry in the Answer section to retrieve the domain name associated with the resource record (typically an IP address). The server will reply with a message with this opcode, a copy of the client’s Answer section, and a Question section containing the matching domain names.
pub const NOTIFY: Opcode
pub const UPDATE: Opcode
Trait Implementations§
impl Copy for Opcode
impl Eq for Opcode
impl Pod for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
bits
as &Self.