pub struct NetworkWatch {
pub events: Receiver<String>,
pub force: Sender<String>,
}Expand description
Network-change notifications.
Fields§
§events: Receiver<String>One message per detected change; the payload is a human-readable reason.
force: Sender<String>Inject a synthetic change (e.g. after repeated port-mapping renewal failures) without waiting for the poller.
Auto Trait Implementations§
impl Freeze for NetworkWatch
impl RefUnwindSafe for NetworkWatch
impl Send for NetworkWatch
impl Sync for NetworkWatch
impl Unpin for NetworkWatch
impl UnsafeUnpin for NetworkWatch
impl UnwindSafe for NetworkWatch
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