#[non_exhaustive]#[repr(u16)]pub enum RRType {
A = 1,
CNAME = 5,
PTR = 12,
HINFO = 13,
TXT = 16,
AAAA = 28,
SRV = 33,
NSEC = 47,
ANY = 255,
}
Expand description
DNS resource record types, stored as u16
. Can do as u16
when needed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
A = 1
DNS record type for IPv4 address
CNAME = 5
DNS record type for Canonical Name
PTR = 12
DNS record type for Pointer
HINFO = 13
DNS record type for Host Info
TXT = 16
DNS record type for Text (properties)
AAAA = 28
DNS record type for IPv6 address
SRV = 33
DNS record type for Service
NSEC = 47
DNS record type for Negative Responses
ANY = 255
DNS record type for any records (wildcard)
Implementations§
Trait Implementations§
Source§impl Ord for RRType
impl Ord for RRType
Source§impl PartialOrd for RRType
impl PartialOrd for RRType
impl Copy for RRType
impl Eq for RRType
impl StructuralPartialEq for RRType
Auto Trait Implementations§
impl Freeze for RRType
impl RefUnwindSafe for RRType
impl Send for RRType
impl Sync for RRType
impl Unpin for RRType
impl UnwindSafe for RRType
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