pub struct MdnsDiscovery { /* private fields */ }Expand description
The mDNS implementation of Discovery.
One daemon serves both directions. A host creates it once, passes it to
ClientConfig::inbound or to discover_servers, and keeps it alive
for as long as discovery should work: dropping it shuts the daemon down.
Implementations§
Source§impl MdnsDiscovery
impl MdnsDiscovery
Sourcepub fn new() -> Result<MdnsDiscovery>
pub fn new() -> Result<MdnsDiscovery>
Starts the mDNS daemon.
§Errors
Returns an error when the daemon cannot create its sockets. A build that does not use discovery never calls this.
Trait Implementations§
Source§impl Debug for MdnsDiscovery
impl Debug for MdnsDiscovery
Source§impl Discovery for MdnsDiscovery
impl Discovery for MdnsDiscovery
Auto Trait Implementations§
impl !Freeze for MdnsDiscovery
impl Forget for MdnsDiscovery
impl Move for MdnsDiscovery
impl RefUnwindSafe for MdnsDiscovery
impl Send for MdnsDiscovery
impl Sync for MdnsDiscovery
impl Unpin for MdnsDiscovery
impl UnsafeUnpin for MdnsDiscovery
impl UnwindSafe for MdnsDiscovery
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