pub trait Action {
type Future: Future<Output = Result<Self::Item, RetryError<Self::Error>>>;
type Item;
type Error;
// Required method
fn run(&mut self) -> Self::Future;
}
Expand description
An action can be run multiple times and produces a future.