pub enum DnsClass {
Internet,
Any,
Unknown(u16),
}
Expand description
CLASS
fields appear in resource records. The followingCLASS
mnemonics and values are defined:
IN
1 the InternetCS
2 the CSNET class (Obsolete - used only for examples in some obsolete RFCs)CH
3 the CHAOS classHS
4 Hesiod [Dyer 87]
QCLASS
fields appear in the question section of a query.QCLASS
values are a superset ofCLASS
values; everyCLASS
is a validQCLASS
. In addition toCLASS
values, the followingQCLASSes
are defined:
*
255 any class
Variants§
Implementations§
Trait Implementations§
impl Copy for DnsClass
impl Eq for DnsClass
impl StructuralPartialEq for DnsClass
Auto Trait Implementations§
impl Freeze for DnsClass
impl RefUnwindSafe for DnsClass
impl Send for DnsClass
impl Sync for DnsClass
impl Unpin for DnsClass
impl UnwindSafe for DnsClass
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