Enum simple_dns::OPCODE
source · [−]pub enum OPCODE {
StandardQuery,
InverseQuery,
ServerStatusRequest,
Reserved,
}
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
Normal query
InverseQuery
Inverse query (query a name by IP)
ServerStatusRequest
Server status request
Reserved
Reserved opcode for future use
Trait Implementations
impl Copy 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more