pub struct Mdns<'a, M: Udp> {
pub socket: &'a M,
pub group: PeerAddr,
pub interface: u32,
}Available on crate feature
rustcrypto only.Expand description
The mDNS side of Runtime::run: the socket bound to 5353, the group answers go to, and
the interface both live on.
The interface index matters twice: it is the link the multicast group is joined on, and the
zone every answer is sent with. ff02::fb is link-local, so a send with no interface is
ambiguous and the operating system refuses it.
Fields§
§socket: &'a MThe mDNS socket.
group: PeerAddrff02::fb on the interface — StdUdp::mdns_group on std.
interface: u32The interface index, also used to join groupcast addresses.
Trait Implementations§
Auto Trait Implementations§
impl<'a, M> Forget for Mdns<'a, M>
impl<'a, M> Freeze for Mdns<'a, M>
impl<'a, M> Move for Mdns<'a, M>
impl<'a, M> RefUnwindSafe for Mdns<'a, M>where
&'a M: RefUnwindSafe,
impl<'a, M> Send for Mdns<'a, M>
impl<'a, M> Sync for Mdns<'a, M>
impl<'a, M> Unpin for Mdns<'a, M>
impl<'a, M> UnsafeUnpin for Mdns<'a, M>where
&'a M: UnsafeUnpin,
impl<'a, M> UnwindSafe for Mdns<'a, M>where
&'a M: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more