Struct drain::Watch [−][src]
pub struct Watch { /* fields omitted */ }Expand description
Watch for a drain command.
All Watch instances must be dropped for a Signal::signal call to
complete.
Implementations
Returns a ReleaseShutdown handle after the drain has been signaled. The
handle must be dropped when a shutdown action has been completed to
unblock graceful shutdown.
Return a ReleaseShutdown handle immediately, ignoring the release signal.
This is intended to allow a task to block shutdown until it completes.
Wrap a future and a callback that is triggered when drain is received.
The callback receives a mutable reference to the original future, and should be used to trigger any shutdown process for it.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Watchimpl !UnwindSafe for WatchBlanket Implementations
Mutably borrows from an owned value. Read more