[−][src]Struct mdns::Response
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
impl RefUnwindSafe for Response
[src]
impl Send for Response
[src]
impl Sync for Response
[src]
impl Unpin for Response
[src]
impl UnwindSafe for Response
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,