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§

source

fn check(&self, at: &'static str) -> Result<(), CancellationError>

Trait Implementations§

source§

impl<'a> BitOr for &'a dyn CancellationFlag

§

type Output = OrCancellationFlag<'a>

The resulting type after applying the | operator.
source§

fn bitor(self, rhs: Self) -> Self::Output

Performs the | operation. Read more
source§

impl CancellationFlag for &dyn CancellationFlag

source§

fn check(&self, at: &'static str) -> Result<(), CancellationError>

source§

impl CancellationFlag for &dyn CancellationFlag

source§

fn check(&self, at: &'static str) -> Result<(), CancellationError>

Implementors§