pub enum OPCODE {
StandardQuery = 0,
InverseQuery = 1,
ServerStatusRequest = 2,
Notify = 4,
Update = 5,
Reserved = 6,
}
Expand description
Possible OPCODE values for a DNS packet, use to specify the type of operation.
RFC 1035: 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.
Variants§
StandardQuery = 0
Normal query
InverseQuery = 1
Inverse query (query a name by IP)
ServerStatusRequest = 2
Server status request
Notify = 4
Notify query
Update = 5
Update query RFC 2136
Reserved = 6
Reserved opcode for future use
Trait Implementations§
impl Copy for OPCODE
impl Eq 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
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)