pub trait Cancellable<E> {
    // Required method
    fn cancel(&self, err: E);
}
Expand description

Sometimes you just cannot keep your Promises.

Required Methods§

source

fn cancel(&self, err: E)

Cancel the Promise you made, explaining why with an Error.

Implementors§

source§

impl<T, E> Cancellable<E> for Pinky<Result<T, E>>