[][src]Struct mdns::Response

pub struct Response {
    pub answers: Vec<Record>,
    pub nameservers: Vec<Record>,
    pub additional: Vec<Record>,
}

A DNS response.

Fields

answers: Vec<Record>nameservers: Vec<Record>additional: Vec<Record>

Implementations

impl Response[src]

pub fn from_packet(packet: &Packet<'_>) -> Self[src]

pub fn records(&self) -> impl Iterator<Item = &Record>[src]

pub fn is_empty(&self) -> bool[src]

pub fn ip_addr(&self) -> Option<IpAddr>[src]

pub fn hostname(&self) -> Option<&str>[src]

pub fn port(&self) -> Option<u16>[src]

pub fn socket_address(&self) -> Option<SocketAddr>[src]

pub fn txt_records(&self) -> impl Iterator<Item = &str>[src]

Trait Implementations

impl Clone for Response[src]

impl Debug for Response[src]

impl Eq for Response[src]

impl PartialEq<Response> for Response[src]

impl StructuralEq for Response[src]

impl StructuralPartialEq for Response[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.