Enum dns_parser::rdata::RData
source · [−]pub enum RData<'a> {
A(A),
AAAA(Aaaa),
CNAME(Cname<'a>),
MX(Mx<'a>),
NS(Ns<'a>),
PTR(Ptr<'a>),
SOA(Soa<'a>),
SRV(Srv<'a>),
TXT(Txt<'a>),
Unknown(&'a [u8]),
}
Expand description
The enumeration that represents known types of DNS resource records data
Variants
A(A)
AAAA(Aaaa)
CNAME(Cname<'a>)
MX(Mx<'a>)
NS(Ns<'a>)
PTR(Ptr<'a>)
SOA(Soa<'a>)
SRV(Srv<'a>)
TXT(Txt<'a>)
Unknown(&'a [u8])
Anything that can’t be parsed yet
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for RData<'a>
impl<'a> Send for RData<'a>
impl<'a> Sync for RData<'a>
impl<'a> Unpin for RData<'a>
impl<'a> UnwindSafe for RData<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more