pub trait Task {
type Item;
type Error: Debug;
type Fut: Future<Output = Result<Self::Item, Self::Error>>;
// Required method
fn call(&mut self) -> Self::Fut;
}Expand description
A unit of work to be retried
A implementation is provided for FnMut() -> Future