Struct async_shutdown::WrapCancel [−][src]
pub struct WrapCancel<F> { /* fields omitted */ }
Expand description
Wrapped future that is automatically cancelled when a shutdown is triggered.
The wrapped future is dropped when a shutdown is triggered before the future completes. The wrapped future is not dropped if it completes before the shutdown signal is received.
Trait Implementations
Auto Trait Implementations
impl<F> RefUnwindSafe for WrapCancel<F> where
F: RefUnwindSafe,
impl<F> Send for WrapCancel<F> where
F: Send,
impl<F> Sync for WrapCancel<F> where
F: Sync,
impl<F> Unpin for WrapCancel<F> where
F: Unpin,
impl<F> UnwindSafe for WrapCancel<F> where
F: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (
into_future
)The output that the future will produce on completion.
type Future = F
type Future = F
🔬 This is a nightly-only experimental API. (
into_future
)Which kind of future are we turning this into?
🔬 This is a nightly-only experimental API. (
into_future
)Creates a future from a value.