Enum updns::DnsRecord[][src]

pub enum DnsRecord {
    UNKNOWN {
        domain: String,
        qtype: u16,
        data_len: u16,
        ttl: u32,
    },
    A {
        domain: String,
        addr: Ipv4Addr,
        ttl: u32,
    },
    NS {
        domain: String,
        host: String,
        ttl: u32,
    },
    CNAME {
        domain: String,
        host: String,
        ttl: u32,
    },
    MX {
        domain: String,
        priority: u16,
        host: String,
        ttl: u32,
    },
    AAAA {
        domain: String,
        addr: Ipv6Addr,
        ttl: u32,
    },
}

Variants

UNKNOWN

Fields of UNKNOWN

domain: Stringqtype: u16data_len: u16ttl: u32
A

Fields of A

domain: Stringaddr: Ipv4Addrttl: u32
NS

Fields of NS

domain: Stringhost: Stringttl: u32
CNAME

Fields of CNAME

domain: Stringhost: Stringttl: u32
MX

Fields of MX

domain: Stringpriority: u16host: Stringttl: u32
AAAA

Fields of AAAA

domain: Stringaddr: Ipv6Addrttl: u32

Implementations

impl DnsRecord[src]

pub fn read(buffer: &mut BytePacketBuffer) -> Result<DnsRecord>[src]

pub fn write(&self, buffer: &mut BytePacketBuffer) -> Result<usize>[src]

Trait Implementations

impl Clone for DnsRecord[src]

impl Debug for DnsRecord[src]

impl Eq for DnsRecord[src]

impl Hash for DnsRecord[src]

impl Ord for DnsRecord[src]

impl PartialEq<DnsRecord> for DnsRecord[src]

impl PartialOrd<DnsRecord> for DnsRecord[src]

impl StructuralEq for DnsRecord[src]

impl StructuralPartialEq for DnsRecord[src]

Auto Trait Implementations

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