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> Freeze for RData<'a>
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§
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