pub enum DnsRecord {
A {
name: String,
ttl: u32,
addr: Ipv4Addr,
},
AAAA {
name: String,
ttl: u32,
addr: Ipv6Addr,
},
CNAME {
name: String,
ttl: u32,
cname: String,
},
MX {
name: String,
ttl: u32,
preference: u16,
exchange: String,
},
NS {
name: String,
ttl: u32,
nsdname: String,
},
PTR {
name: String,
ttl: u32,
ptrdname: String,
},
SOA {
name: String,
ttl: u32,
mname: String,
rname: String,
serial: u32,
refresh: u32,
retry: u32,
expire: u32,
minimum: u32,
},
TXT {
name: String,
ttl: u32,
data: Vec<u8>,
},
SRV {
name: String,
ttl: u32,
priority: u16,
weight: u16,
port: u16,
target: String,
},
Unknown {
name: String,
qtype: DnsType,
ttl: u32,
rdata: Vec<u8>,
},
}Expand description
A parsed DNS resource record.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DnsRecord
impl RefUnwindSafe for DnsRecord
impl Send for DnsRecord
impl Sync for DnsRecord
impl Unpin for DnsRecord
impl UnsafeUnpin for DnsRecord
impl UnwindSafe for DnsRecord
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