Enum sparkle::RData [] [src]

pub enum RData<'a, F: Format<'a>> {
    A {
        address: Ipv4Addr,
    },
    CName {
        cname: F::Name,
    },
    NS {
        nsdname: F::Name,
    },
    SOA {
        mname: F::Name,
        rname: F::Name,
        serial: SerialNumber,
        refresh: Ttl,
        retry: Ttl,
        expire: Ttl,
        minimum: Ttl,
    },
    Other {
        octets: F::RawOctets,
    },
}

Encapsulates an RDATA field stored in a given format.

Variants

Fields of A

Fields of CName

Fields of NS

Fields of SOA

Fields of Other

Trait Implementations

impl<'a, F: Clone + Format<'a>> Clone for RData<'a, F> where
    F::Name: Clone,
    F::Name: Clone,
    F::Name: Clone,
    F::Name: Clone,
    F::RawOctets: Clone
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, F: Debug + Format<'a>> Debug for RData<'a, F> where
    F::Name: Debug,
    F::Name: Debug,
    F::Name: Debug,
    F::Name: Debug,
    F::RawOctets: Debug
[src]

Formats the value using the given formatter.

impl<'a, F: Eq + Format<'a>> Eq for RData<'a, F> where
    F::Name: Eq,
    F::Name: Eq,
    F::Name: Eq,
    F::Name: Eq,
    F::RawOctets: Eq
[src]

impl<'a, F: PartialEq + Format<'a>> PartialEq for RData<'a, F> where
    F::Name: PartialEq,
    F::Name: PartialEq,
    F::Name: PartialEq,
    F::Name: PartialEq,
    F::RawOctets: PartialEq
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.