[][src]Struct dnsparse::Answer

pub struct Answer<'a> {
    pub name: Name<'a>,
    pub kind: QueryKind,
    pub class: QueryClass,
    pub ttl: u32,
    pub rdata: &'a [u8],
}

A DNS answer.

Fields

name: Name<'a>kind: QueryKindclass: QueryClassttl: u32rdata: &'a [u8]

Implementations

impl<'a> Answer<'a>[src]

pub fn name(&self) -> &Name<'a>[src]

pub fn kind(&self) -> &QueryKind[src]

pub fn class(&self) -> &QueryClass[src]

pub fn ttl(&self) -> u32[src]

pub fn rdata(&self) -> &'a [u8][src]

Auto Trait Implementations

impl<'a> Send for Answer<'a>

impl<'a> Sync for Answer<'a>

impl<'a> Unpin for Answer<'a>

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