Rdata

Enum Rdata 

Source
#[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 Format + 's> for Rdata<'s>

Source§

fn as_ref(&self) -> &(dyn Format + 's)

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<'s> AsRef<dyn View<'s, Error = RdataError>> for Rdata<'s>

Source§

fn as_ref(&self) -> &dyn View<'s, Error = RdataError>

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<'s> From<&Record<'s>> for Rdata<'s>

Source§

fn from(record: &Record<'s>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<A<'s>> for Rdata<'s>

Source§

fn from(inner: A<'s>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Aaaa<'s>> for Rdata<'s>

Source§

fn from(inner: Aaaa<'s>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Caa<'s>> for Rdata<'s>

Source§

fn from(inner: Caa<'s>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Cname<'s>> for Rdata<'s>

Source§

fn from(inner: Cname<'s>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Malformed<'s>> for Rdata<'s>

Source§

fn from(inner: Malformed<'s>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Mx<'s>> for Rdata<'s>

Source§

fn from(inner: Mx<'s>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Ns<'s>> for Rdata<'s>

Source§

fn from(inner: Ns<'s>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Ptr<'s>> for Rdata<'s>

Source§

fn from(inner: Ptr<'s>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Soa<'s>> for Rdata<'s>

Source§

fn from(inner: Soa<'s>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Txt<'s>> for Rdata<'s>

Source§

fn from(inner: Txt<'s>) -> Self

Converts to this type from the input type.
Source§

impl<'s> From<Unknown<'s>> for Rdata<'s>

Source§

fn from(inner: Unknown<'s>) -> Self

Converts to this type from the 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.