Struct mdns::Response [−][src]
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>
Methods
impl Response
[src]
impl Response
pub fn from_packet(packet: &Packet) -> Self
[src]
pub fn from_packet(packet: &Packet) -> Self
pub fn records(&self) -> IntoIter<&Record>
[src]
pub fn records(&self) -> IntoIter<&Record>
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Trait Implementations
impl Clone for Response
[src]
impl Clone for Response
fn clone(&self) -> Response
[src]
fn clone(&self) -> Response
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Response
[src]
impl Debug for Response
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Response
[src]
impl PartialEq for Response
fn eq(&self, other: &Response) -> bool
[src]
fn eq(&self, other: &Response) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Response) -> bool
[src]
fn ne(&self, other: &Response) -> bool
This method tests for !=
.
impl Eq for Response
[src]
impl Eq for Response