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;
}
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;
}