Struct graceful_shutdown::CancelOnShutdown
source · pub struct CancelOnShutdown<F> { /* private fields */ }
Expand description
A future that is canceled if shutdown is initiated.
Created by Shutdown::cancel_on_shutdown
. See its documetnation for more.
Trait Implementations
sourceimpl<F: Future> Future for CancelOnShutdown<F>
impl<F: Future> Future for CancelOnShutdown<F>
impl<'__pin, F> Unpin for CancelOnShutdown<F>where
__Origin<'__pin, F>: Unpin,
Auto Trait Implementations
impl<F> RefUnwindSafe for CancelOnShutdown<F>where
F: RefUnwindSafe,
impl<F> Send for CancelOnShutdown<F>where
F: Send,
impl<F> Sync for CancelOnShutdown<F>where
F: Sync,
impl<F> UnwindSafe for CancelOnShutdown<F>where
F: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
sourcefn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more