Enum dnsparse::QueryClass
source · [−]#[repr(u16)]
pub enum QueryClass {
IN,
CS,
CH,
HS,
Reserved,
}
Expand description
The class of a DNS query.
According to RFC 1035 Section 3.2.4.
Variants
IN
Internet
CS
CSNET
CH
CHAOS
HS
Hesiod
Reserved
Implementations
sourceimpl QueryClass
impl QueryClass
pub fn to_be_bytes(self) -> [u8; 2]
Trait Implementations
sourceimpl Clone for QueryClass
impl Clone for QueryClass
sourcefn clone(&self) -> QueryClass
fn clone(&self) -> QueryClass
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for QueryClass
impl Debug for QueryClass
sourceimpl PartialEq<QueryClass> for QueryClass
impl PartialEq<QueryClass> for QueryClass
impl Copy for QueryClass
impl StructuralPartialEq for QueryClass
Auto Trait Implementations
impl RefUnwindSafe for QueryClass
impl Send for QueryClass
impl Sync for QueryClass
impl Unpin for QueryClass
impl UnwindSafe for QueryClass
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