Struct mdns_sd::ServiceDaemon [−][src]
pub struct ServiceDaemon { /* fields omitted */ }Expand description
A daemon thread for mDNS
This struct provides a handle and an API to the daemon. It is cloneable.
Implementations
Creates a new daemon.
The daemon (re)uses the default mDNS port 5353. To keep it simple, we don’t ask callers to set the port.
Starts browsing for a specific service type.
Returns a channel Receiver to receive events about the service. The caller
can call .try_recv() on this receiver to handle events in an async environment
or call .recv() in a sync environment.
When a new instance is found, the daemon automatically tries to resolve, i.e. finding more details, i.e. SRV records and TXT records.
Stops searching for a specific service type.
When an error is returned, the caller should retry only when
the error is Error::Again, otherwise should log and move on.
Registers a service provided by this host.
Unregisters a service. This is a graceful shutdown of a service.
Returns a channel receiver that is used to receive the status code of the unregister.
When an error is returned, the caller should retry only when
the error is Error::Again, otherwise should log and move on.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ServiceDaemon
impl Send for ServiceDaemon
impl Sync for ServiceDaemon
impl Unpin for ServiceDaemon
impl UnwindSafe for ServiceDaemon
Blanket Implementations
Mutably borrows from an owned value. Read more
