Struct libp2p_mdns::service::MdnsResponse
source · [−]pub struct MdnsResponse { /* private fields */ }
Expand description
A received mDNS response.
Implementations
sourceimpl MdnsResponse
impl MdnsResponse
sourcepub fn discovered_peers(&self) -> impl Iterator<Item = &MdnsPeer>
pub fn discovered_peers(&self) -> impl Iterator<Item = &MdnsPeer>
Returns the list of peers that have been reported in this packet.
Note: Keep in mind that this will also contain the responses we sent ourselves.
sourcepub fn remote_addr(&self) -> &SocketAddr
pub fn remote_addr(&self) -> &SocketAddr
Source address of the packet.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MdnsResponse
impl Send for MdnsResponse
impl Sync for MdnsResponse
impl Unpin for MdnsResponse
impl UnwindSafe for MdnsResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more