pub trait CancelFuture{
// Provided methods
fn or_cancel<H: RcLike<CancelHandle>>(
self,
cancel_handle: H,
) -> Cancelable<Self> ⓘ { ... }
fn or_abort<H: RcLike<CancelHandle>>(
self,
cancel_handle: H,
) -> Abortable<Self>
where Self: Unpin { ... }
}
Provided Methods§
fn or_cancel<H: RcLike<CancelHandle>>( self, cancel_handle: H, ) -> Cancelable<Self> ⓘ
Sourcefn or_abort<H: RcLike<CancelHandle>>(self, cancel_handle: H) -> Abortable<Self>where
Self: Unpin,
fn or_abort<H: RcLike<CancelHandle>>(self, cancel_handle: H) -> Abortable<Self>where
Self: Unpin,
For unpinnable futures, returns the future on cancellation rather than an error.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.