pub trait OrCancelExt: Sized {
type Output;
// Required method
fn or_cancel(
self,
token: &CancellationToken,
) -> impl Future<Output = Result<Self::Output, CancelErr>> + Send;
}Required Associated Types§
Required Methods§
fn or_cancel( self, token: &CancellationToken, ) -> impl Future<Output = Result<Self::Output, CancelErr>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".