pub struct MdnsBrowserAsync { /* private fields */ }
Expand description
Asynchronous mDNS browser.
Implementations§
Source§impl MdnsBrowserAsync
impl MdnsBrowserAsync
Sourcepub fn new(browser: MdnsBrowser) -> Result<Self>
pub fn new(browser: MdnsBrowser) -> Result<Self>
Create a new asynchronous mDNS browser.
Sourcepub async fn start_with_timeout(&mut self, timeout: Duration) -> Result<()>
pub async fn start_with_timeout(&mut self, timeout: Duration) -> Result<()>
Start the browser with a timeout passed to the zeroconf::EventLoop
.
Sourcepub async fn next(&mut self) -> Option<Result<ServiceDiscovery>>
pub async fn next(&mut self) -> Option<Result<ServiceDiscovery>>
Get the next discovered service or None
if the browser is not running.
Auto Trait Implementations§
impl Freeze for MdnsBrowserAsync
impl !RefUnwindSafe for MdnsBrowserAsync
impl !Send for MdnsBrowserAsync
impl !Sync for MdnsBrowserAsync
impl Unpin for MdnsBrowserAsync
impl !UnwindSafe for MdnsBrowserAsync
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