pub enum DnsType {
A,
AAAA,
CNAME,
MX,
NS,
PTR,
SOA,
TXT,
ANY,
Unknown(u16),
}
Expand description
TYPE fields are used in resource records. Note that these types are a subset of QTYPEs.
https://datatracker.ietf.org/doc/html/rfc1035#section-3.2.2
A record type is defined to store a host’s IPv6 address. A host that has more than one IPv6 address must have more than one such record.
https://datatracker.ietf.org/doc/html/rfc3596#section-2
QTYPE fields appear in the question part of a query. QTYPES are a superset of TYPEs, hence all TYPEs are valid QTYPEs.
Variants§
A
IPv4 address
AAAA
IPv6 address
CNAME
The canonical name for an alias
MX
Mail exchange
NS
Authoritative name server
PTR
Domain name pointer
SOA
Marks the start of a zone of authority
TXT
Text string
ANY
Unknown(u16)
Implementations§
Trait Implementations§
Source§impl Ord for DnsType
impl Ord for DnsType
Source§impl PartialOrd for DnsType
impl PartialOrd for DnsType
impl Eq for DnsType
impl StructuralPartialEq for DnsType
Auto Trait Implementations§
impl Freeze for DnsType
impl RefUnwindSafe for DnsType
impl Send for DnsType
impl Sync for DnsType
impl Unpin for DnsType
impl UnwindSafe for DnsType
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