pub enum DnsRecord {
UNKNOWN {
domain: String,
qtype: u16,
data_len: u16,
ttl: u32,
},
A {
domain: String,
addr: Ipv4Addr,
ttl: u32,
},
NS {
domain: String,
host: String,
ttl: u32,
},
CNAME {
domain: String,
host: String,
ttl: u32,
},
MX {
domain: String,
priority: u16,
host: String,
ttl: u32,
},
AAAA {
domain: String,
addr: Ipv6Addr,
ttl: u32,
},
}
Variants§
Implementations§
Trait Implementations§
source§impl Ord for DnsRecord
impl Ord for DnsRecord
source§impl PartialEq<DnsRecord> for DnsRecord
impl PartialEq<DnsRecord> for DnsRecord
source§impl PartialOrd<DnsRecord> for DnsRecord
impl PartialOrd<DnsRecord> for DnsRecord
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