Enum simple_dns::OPCODE
source · 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§
source§impl PartialEq for OPCODE
impl PartialEq for OPCODE
impl Copy for OPCODE
impl Eq for OPCODE
impl StructuralEq for OPCODE
impl StructuralPartialEq for OPCODE
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§
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