#[non_exhaustive]pub enum Rdata<'s> {
Malformed(Malformed<'s>),
Unknown(Unknown<'s>),
Ns(Ns<'s>),
Cname(Cname<'s>),
Soa(Soa<'s>),
Ptr(Ptr<'s>),
Mx(Mx<'s>),
Txt(Txt<'s>),
Caa(Caa<'s>),
InAddress(A<'s>),
InAaaa(Aaaa<'s>),
}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.
Malformed(Malformed<'s>)
Unknown(Unknown<'s>)
Ns(Ns<'s>)
Cname(Cname<'s>)
Soa(Soa<'s>)
Ptr(Ptr<'s>)
Mx(Mx<'s>)
Txt(Txt<'s>)
Caa(Caa<'s>)
InAddress(A<'s>)
InAaaa(Aaaa<'s>)
Trait Implementations§
Source§impl<'s> AsRef<dyn View<'s, Error = RdataError>> for Rdata<'s>
impl<'s> AsRef<dyn View<'s, Error = RdataError>> for Rdata<'s>
Source§fn as_ref(&self) -> &dyn View<'s, Error = RdataError>
fn as_ref(&self) -> &dyn View<'s, Error = RdataError>
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl<'s> Freeze for Rdata<'s>
impl<'s> RefUnwindSafe for Rdata<'s>
impl<'s> Send for Rdata<'s>
impl<'s> Sync for Rdata<'s>
impl<'s> Unpin for Rdata<'s>
impl<'s> UnwindSafe for Rdata<'s>
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