deno_core

Trait CancelTryFuture

Source
pub trait CancelTryFuture
where Self: TryFuture + Sized, Canceled: Into<Self::Error>,
{ // Provided method fn try_or_cancel<H: RcLike<CancelHandle>>( self, cancel_handle: H, ) -> TryCancelable<Self> { ... } }

Provided Methods§

Source

fn try_or_cancel<H: RcLike<CancelHandle>>( self, cancel_handle: H, ) -> TryCancelable<Self>

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.

Implementors§

Source§

impl<F> CancelTryFuture for F
where F: TryFuture, Canceled: Into<F::Error>,