Enum flex_dns::header::DnsHeaderOpcode
source · pub enum DnsHeaderOpcode {
Query,
InverseQuery,
Status,
Notify,
Update,
Reserved(u8),
}Expand description
A DNS opcode.
Variants§
Trait Implementations§
source§impl Clone for DnsHeaderOpcode
impl Clone for DnsHeaderOpcode
source§fn clone(&self) -> DnsHeaderOpcode
fn clone(&self) -> DnsHeaderOpcode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for DnsHeaderOpcode
impl Debug for DnsHeaderOpcode
source§impl From<DnsHeaderOpcode> for u8
impl From<DnsHeaderOpcode> for u8
source§fn from(value: DnsHeaderOpcode) -> Self
fn from(value: DnsHeaderOpcode) -> Self
Converts to this type from the input type.
source§impl From<u8> for DnsHeaderOpcode
impl From<u8> for DnsHeaderOpcode
source§impl PartialEq<DnsHeaderOpcode> for DnsHeaderOpcode
impl PartialEq<DnsHeaderOpcode> for DnsHeaderOpcode
source§fn eq(&self, other: &DnsHeaderOpcode) -> bool
fn eq(&self, other: &DnsHeaderOpcode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for DnsHeaderOpcode
impl StructuralPartialEq for DnsHeaderOpcode
Auto Trait Implementations§
impl RefUnwindSafe for DnsHeaderOpcode
impl Send for DnsHeaderOpcode
impl Sync for DnsHeaderOpcode
impl Unpin for DnsHeaderOpcode
impl UnwindSafe for DnsHeaderOpcode
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