Trait tokio_retry::Action
source · pub trait Action {
type Future: Future<Output = Result<Self::Item, 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.