pub trait Cancellation:
Default
+ Send
+ Sync {
// Required methods
fn is_cancelled(&self) -> bool;
fn cancel(&self);
}Required Methods§
fn is_cancelled(&self) -> bool
fn cancel(&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.