Enum dns_parser::rdata::RData

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

Parse an RR data and return RData enumeration

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.