pub struct Watcher { /* private fields */ }
Expand description
A watcher side of the graceful shutdown.
This type can only watch a connection, it cannot trigger a shutdown.
Call GracefulShutdown::watcher()
to construct one of these.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Watcher
impl !RefUnwindSafe for Watcher
impl Send for Watcher
impl Sync for Watcher
impl Unpin for Watcher
impl !UnwindSafe for Watcher
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