Struct async_dnssd::Class
source · pub struct Class(pub u16);
Expand description
DNS CLASS
Originally QCLASS was a superset of CLASS; RFC 6895 now defines:
There are currently two subcategories of DNS CLASSes: normal, data-containing classes; and QCLASSes that are only meaningful in queries or updates.
§ANY
QTYPE 255 either (rules from RFC 6895):
- doesn’t have a mnemonic, violating the existence rule
- has “*” as mnemonic, violating the formatting rule
- has “ANY” as mnemonic, violating the uniquess rule (class ANY)
The QCLASS ANY
is mostly useless anyway and shouldn’t be used in
normal queries.
Tuple Fields§
§0: u16
Implementations§
Trait Implementations§
source§impl Ord for Class
impl Ord for Class
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)