pub enum RData<B: SplitByteSlice> {
A(A),
Aaaa(Aaaa),
Bytes(B),
Domain(Domain<B>),
Srv(SrvRecord<B>),
}
Expand description
A parsed RData (can be one of several types). If this has been parsed in a
PTR type, this will always be a RData::Domain
. In a SRV type packet, this
will always be a RData::Srv
, anything else, currently, will be converted
into RData::Bytes
.
Variants§
Implementations§
Auto Trait Implementations§
impl<B> Freeze for RData<B>where
B: Freeze,
impl<B> RefUnwindSafe for RData<B>where
B: RefUnwindSafe,
impl<B> Send for RData<B>where
B: Send,
impl<B> Sync for RData<B>where
B: Sync,
impl<B> Unpin for RData<B>where
B: Unpin,
impl<B> UnwindSafe for RData<B>where
B: UnwindSafe,
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