pub enum DnsRecordData {
A(Ipv4Address),
AAAA([u8; 16]),
CNAME(String),
MX {
preference: u16,
exchange: String,
},
TXT(String),
PTR(String),
SRV {
priority: u16,
weight: u16,
port: u16,
target: String,
},
NS(String),
Raw(Vec<u8>),
}Expand description
DNS resource record data
Variants§
A(Ipv4Address)
A record: IPv4 address
AAAA([u8; 16])
AAAA record: IPv6 address (16 bytes)
CNAME(String)
CNAME record: canonical name
MX
MX record: preference + exchange
TXT(String)
TXT record: text data
PTR(String)
PTR record: domain name
SRV
SRV record: priority, weight, port, target
NS(String)
NS record: nameserver
Raw(Vec<u8>)
Raw/unknown record data
Trait Implementations§
Source§impl Clone for DnsRecordData
impl Clone for DnsRecordData
Source§fn clone(&self) -> DnsRecordData
fn clone(&self) -> DnsRecordData
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DnsRecordData
impl RefUnwindSafe for DnsRecordData
impl Send for DnsRecordData
impl Sync for DnsRecordData
impl Unpin for DnsRecordData
impl UnwindSafe for DnsRecordData
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)