Enum cdns_rs::common::DnsRdata

source ·
pub enum DnsRdata {
Show 30 variants None, A { ip: Ipv4Addr, }, NS { fqdn: String, }, MD { data: Vec<u8>, }, MF { data: Vec<u8>, }, CNAME { fqdn: String, }, SOA { soa: DnsSoa, }, MB { data: Vec<u8>, }, MG { data: Vec<u8>, }, MR { data: Vec<u8>, }, NULL { data: Vec<u8>, }, WKS { data: Vec<u8>, }, PTR { fqdn: String, }, HINFO { data: Vec<u8>, }, MX { preference: u16, exchange: String, }, TXT { data: Vec<u8>, }, AFSDB { data: Vec<u8>, }, KEY { data: Vec<u8>, }, AAAA { ip: Ipv6Addr, }, CERT { data: Vec<u8>, }, DS { data: Vec<u8>, }, RRSIG { data: Vec<u8>, }, NSEC { data: Vec<u8>, }, DNSKEY { data: Vec<u8>, }, NSEC3 { data: Vec<u8>, }, NSEC3PARAM { data: Vec<u8>, }, CDS { data: Vec<u8>, }, CDNSKEY { data: Vec<u8>, }, OPENPGPKEY { data: Vec<u8>, }, UNKNOWN { data: Vec<u8>, },
}

Variants§

§

None

§

A

Fields

§

NS

Fields

§fqdn: String
§

MD

Fields

§data: Vec<u8>
§

MF

Fields

§data: Vec<u8>
§

CNAME

Fields

§fqdn: String
§

SOA

Fields

§

MB

Fields

§data: Vec<u8>
§

MG

Fields

§data: Vec<u8>
§

MR

Fields

§data: Vec<u8>
§

NULL

Fields

§data: Vec<u8>
§

WKS

Fields

§data: Vec<u8>
§

PTR

Fields

§fqdn: String
§

HINFO

Fields

§data: Vec<u8>
§

MX

Fields

§preference: u16
§exchange: String
§

TXT

Fields

§data: Vec<u8>
§

AFSDB

Fields

§data: Vec<u8>
§

KEY

Fields

§data: Vec<u8>
§

AAAA

Fields

§

CERT

Fields

§data: Vec<u8>
§

DS

Fields

§data: Vec<u8>
§

RRSIG

Fields

§data: Vec<u8>
§

NSEC

Fields

§data: Vec<u8>
§

DNSKEY

Fields

§data: Vec<u8>
§

NSEC3

Fields

§data: Vec<u8>
§

NSEC3PARAM

Fields

§data: Vec<u8>
§

CDS

Fields

§data: Vec<u8>
§

CDNSKEY

Fields

§data: Vec<u8>
§

OPENPGPKEY

Fields

§data: Vec<u8>
§

UNKNOWN

Fields

§data: Vec<u8>

Implementations§

source§

impl DnsRdata

source

pub fn is_some(&self) -> bool

Trait Implementations§

source§

impl Clone for DnsRdata

source§

fn clone(&self) -> DnsRdata

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for DnsRdata

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for DnsRdata

source§

fn default() -> Self

Returns the “default value” for a type. Read more
source§

impl Display for DnsRdata

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl PartialEq for DnsRdata

source§

fn eq(&self, other: &DnsRdata) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for DnsRdata

source§

impl StructuralPartialEq for DnsRdata

Auto Trait Implementations§

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

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

§

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>,

§

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.
source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V