pub enum DnsClass {
Internet,
Any,
Unknown(u16),
}Expand description
CLASSfields appear in resource records. The followingCLASSmnemonics and values are defined:
IN1 the InternetCS2 the CSNET class (Obsolete - used only for examples in some obsolete RFCs)CH3 the CHAOS classHS4 Hesiod [Dyer 87]
QCLASSfields appear in the question section of a query.QCLASSvalues are a superset ofCLASSvalues; everyCLASSis a validQCLASS. In addition toCLASSvalues, the followingQCLASSesare 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