CancellationFlag

Trait CancellationFlag 

Source
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

Source§

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§