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<Class> for Class
impl PartialOrd<Class> for Class
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more