pub trait CancellationFlag: Sync {
// Required method
fn check(&self, at: &'static str) -> Result<(), CancellationError>;
}Expand description
Trait to signal that the execution is cancelled
Required Methods§
Trait Implementations§
Source§impl<'a> BitOr for &'a dyn CancellationFlag
impl<'a> BitOr for &'a dyn CancellationFlag
Source§impl CancellationFlag for &dyn CancellationFlag
impl CancellationFlag for &dyn CancellationFlag
Source§impl CancellationFlag for &dyn CancellationFlag
impl CancellationFlag for &dyn CancellationFlag
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".