pub enum RecordData {
A(Ipv4Addr),
Aaaa(Ipv6Addr),
Ns(String),
Cname(String),
Ptr(String),
Soa {
serial: u32,
refresh: u32,
retry: u32,
expire: u32,
minimum_ttl: u32,
primary_server: String,
responsible_party: String,
},
Mx {
preference: u16,
exchange: String,
},
Srv {
priority: u16,
weight: u16,
port: u16,
target: String,
},
Txt(Vec<String>),
Tombstone(u64),
Unknown {
ty: u16,
bytes: Vec<u8>,
},
}Expand description
The type-specific half of a record.
Variants§
A(Ipv4Addr)
Aaaa(Ipv6Addr)
Ns(String)
Cname(String)
Ptr(String)
Soa
Fields
Mx
Srv
Txt(Vec<String>)
Tombstone(u64)
DNS_TYPE_ZERO — a tombstone. The payload is the entombed time as a FILETIME.
Unknown
Any other record type, kept verbatim so a round-trip is lossless.
Implementations§
Trait Implementations§
Source§impl Clone for RecordData
impl Clone for RecordData
Source§impl Debug for RecordData
impl Debug for RecordData
impl Eq for RecordData
Source§impl PartialEq for RecordData
impl PartialEq for RecordData
impl StructuralPartialEq for RecordData
Auto Trait Implementations§
impl Freeze for RecordData
impl RefUnwindSafe for RecordData
impl Send for RecordData
impl Sync for RecordData
impl Unpin for RecordData
impl UnsafeUnpin for RecordData
impl UnwindSafe for RecordData
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