[][src]Struct dnsie::DnsAnswer

pub struct DnsAnswer<'a> {
    pub record: Option<DnsRecord<'a>>,
    pub ty: AnyDnsType,
    pub cls: AnyDnsClass,
    pub ttl: u32,
    pub name: MaybeValidString<'a>,
}

DNSResponse contains single response for given dns packet

Fields

record: Option<DnsRecord<'a>>ty: AnyDnsTypecls: AnyDnsClassttl: u32name: MaybeValidString<'a>

Methods

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

pub fn into_owned(self) -> DnsAnswer<'static>[src]

Trait Implementations

impl<'a> Clone for DnsAnswer<'a>[src]

impl<'a> Debug for DnsAnswer<'a>[src]

impl<'de, 'a> Deserialize<'de> for DnsAnswer<'a>[src]

impl<'a> Eq for DnsAnswer<'a>[src]

impl<'a> Ord for DnsAnswer<'a>[src]

impl<'a> PartialEq<DnsAnswer<'a>> for DnsAnswer<'a>[src]

impl<'a> PartialOrd<DnsAnswer<'a>> for DnsAnswer<'a>[src]

impl<'a> Serialize for DnsAnswer<'a>[src]

impl<'a> StructuralEq for DnsAnswer<'a>[src]

impl<'a> StructuralPartialEq for DnsAnswer<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for DnsAnswer<'a>

impl<'a> Send for DnsAnswer<'a>

impl<'a> Sync for DnsAnswer<'a>

impl<'a> Unpin for DnsAnswer<'a>

impl<'a> UnwindSafe for DnsAnswer<'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> 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.