pub enum Class {
IN,
CS,
CH,
HS,
Any,
Unknown(u16),
}Expand description
An enumeration of the different available DNS Classes.
In practice should allways be Class::IN, but the rest are included for completeness.
Variants§
IN
IN: the Internet
CS
CS: the CSNET class (Obsolete)
CH
CH: the CHAOS class
HS
HS: Hesiod [Dyer 87]
Any
*: any class
Unknown(u16)
?: A value has been received that does not correspond to any known class
Trait Implementations§
Source§impl PartialOrd for Class
impl PartialOrd for Class
impl Copy for Class
impl Eq for Class
impl StructuralPartialEq for Class
Auto Trait Implementations§
impl Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnwindSafe for Class
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