pub struct MdnsDiscovery { /* private fields */ }Expand description
mDNS discovery state.
Implementations§
Source§impl MdnsDiscovery
impl MdnsDiscovery
pub fn new() -> Self
Sourcepub fn start_scan(&mut self, timeout_secs: u32)
pub fn start_scan(&mut self, timeout_secs: u32)
Start an mDNS scan for SSH services.
Sourcepub fn poll(&mut self) -> bool
pub fn poll(&mut self) -> bool
Poll for newly discovered hosts. Returns true if new hosts were found.
Sourcepub fn is_scanning(&self) -> bool
pub fn is_scanning(&self) -> bool
Returns whether a scan is currently in progress.
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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