Struct zeroconf::linux::browser::AvahiMdnsBrowser [−][src]
pub struct AvahiMdnsBrowser { /* fields omitted */ }
Trait Implementations
Creates a new MdnsBrowser
that browses for the specified kind
(e.g. _http._tcp
)
Sets the network interface on which to browse for services on. Read more
fn set_service_discovered_callback(
&mut self,
service_discovered_callback: Box<ServiceDiscoveredCallback>
)
fn set_service_discovered_callback(
&mut self,
service_discovered_callback: Box<ServiceDiscoveredCallback>
)
Sets the ServiceDiscoveredCallback
that is invoked when the browser has discovered and
resolved a service. Read more
Sets the optional user context to pass through to the callback. This is useful if you need
to share state between pre and post-callback. The context type must implement Any
. Read more
Starts the browser. Returns an EventLoop
which can be called to keep the browser alive.