[][src]Enum dnsie::DnsType

pub enum DnsType {
    A,
    NS,
    CNAME,
    SOA,
    PTR,
    HINFO,
    MINFO,
    MX,
    TXT,
    AAAA,
    SRV,
}

Variants

A
NS
CNAME
SOA
PTR
HINFO
MINFO
MX
TXT
AAAA
SRV

Methods

impl DnsType[src]

pub fn try_from_num(n: u16) -> Result<Self, ()>[src]

pub fn into_num(self) -> u16[src]

Trait Implementations

impl Clone for DnsType[src]

impl Copy for DnsType[src]

impl Debug for DnsType[src]

impl<'de> Deserialize<'de> for DnsType[src]

impl Eq for DnsType[src]

impl From<DnsType> for AnyDnsType[src]

impl Hash for DnsType[src]

impl Into<u16> for DnsType[src]

impl Ord for DnsType[src]

impl PartialEq<DnsType> for DnsType[src]

impl PartialOrd<DnsType> for DnsType[src]

impl Serialize for DnsType[src]

impl StructuralEq for DnsType[src]

impl StructuralPartialEq for DnsType[src]

impl TryFrom<u16> for DnsType[src]

type Error = ()

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for DnsType

impl Send for DnsType

impl Sync for DnsType

impl Unpin for DnsType

impl UnwindSafe for DnsType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.