Trait Cancellation

Source
pub trait Cancellation<I> {
    type Output;

    // Required methods
    fn is_cancellable(&self) -> bool;
    fn is_cancelling(&self) -> bool;
    fn set_cancelling(&mut self, is_it: bool);
    fn make_output(&self, item: I) -> Self::Output;
}

Required Associated Types§

Required Methods§

Source

fn is_cancellable(&self) -> bool

Source

fn is_cancelling(&self) -> bool

Source

fn set_cancelling(&mut self, is_it: bool)

Source

fn make_output(&self, item: I) -> Self::Output

Implementors§