pub struct ChangeDetector { /* private fields */ }Expand description
A detector for changes to which network interfaces are available on the system.
Implementations§
Source§impl ChangeDetector
impl ChangeDetector
Sourcepub fn new() -> Result<Self>
pub fn new() -> Result<Self>
Create a new detector for changes to which network interfaces are available on the system.
§Errors
May fail if the system does not allow a new change detector to be created.
Sourcepub async fn wait_for_change(&mut self)
pub async fn wait_for_change(&mut self)
Wait for a change to which network interfaces are present.
Auto Trait Implementations§
impl !RefUnwindSafe for ChangeDetector
impl !UnwindSafe for ChangeDetector
impl Forget for ChangeDetector
impl Freeze for ChangeDetector
impl Move for ChangeDetector
impl Send for ChangeDetector
impl Sync for ChangeDetector
impl Unpin for ChangeDetector
impl UnsafeUnpin for ChangeDetector
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