[][src]Enum dns_message_parser::RData

pub enum RData {
    A(Ipv4Addr),
    NS(DomainName),
    MD(DomainName),
    MF(DomainName),
    CNAME(DomainName),
    SOA(DomainNameDomainNameu32u32u32u32u32),
    MB(DomainName),
    MG(DomainName),
    MR(DomainName),
    NULL(Vec<u8>),
    WKS(Ipv4Addru8Vec<u8>),
    PTR(DomainName),
    HINFO(StringString),
    MINFO(DomainNameDomainName),
    MX(u16DomainName),
    TXT(String),
    RP(DomainNameDomainName),
    AFSDB(AFSDBSubtypeDomainName),
    X25(String),
    ISDN(StringOption<String>),
    RT(u16DomainName),
    NSAP(Vec<u8>),
    KEY(u16u8u8Vec<u8>),
    PX(u16DomainNameDomainName),
    GPOS(StringStringString),
    AAAA(Ipv6Addr),
    LOC(u8u8u8u8u32u32u32),
    EID(Vec<u8>),
    NIMLOC(Vec<u8>),
    SRV(u16u16u16DomainName),
    KX(u16DomainName),
    DNAME(DomainName),
    OPT,
    SSHFP(SSHFPAlgorithmSSHFPTypeVec<u8>),
}

Variants

CNAME(DomainName)
NULL(Vec<u8>)
WKS(Ipv4Addru8Vec<u8>)
HINFO(StringString)
TXT(String)
X25(String)
NSAP(Vec<u8>)
KEY(u16u8u8Vec<u8>)
GPOS(StringStringString)
AAAA(Ipv6Addr)
LOC(u8u8u8u8u32u32u32)
EID(Vec<u8>)
NIMLOC(Vec<u8>)
SRV(u16u16u16DomainName)
DNAME(DomainName)
OPT

Implementations

impl RData[src]

pub fn decode(
    bytes: &Bytes,
    offset: &mut usize,
    type_: &Type
) -> Result<(Class, u32, RData), DecodeError>
[src]

impl RData[src]

pub fn encode(
    &self,
    bytes: &mut BytesMut,
    class: &Class,
    ttl: u32,
    compression: &mut HashMap<String, usize>
) -> Result<(), EncodeError>
[src]

impl RData[src]

pub fn get_type(&self) -> Type[src]

Trait Implementations

impl Clone for RData[src]

impl Debug for RData[src]

impl Display for RData[src]

impl PartialEq<RData> for RData[src]

impl StructuralPartialEq for RData[src]

Auto Trait Implementations

impl RefUnwindSafe for RData

impl Send for RData

impl Sync for RData

impl Unpin for RData

impl UnwindSafe for RData

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> ToString for T where
    T: Display + ?Sized
[src]

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.