Trait tokio_retry::Action
[−]
[src]
pub trait Action { type Future: Future<Item = Self::Item, Error = Self::Error>; type Item; type Error; fn run(&mut self) -> Self::Future; }
An action can be run multiple times and produces a future.
Associated Types
type Future: Future<Item = Self::Item, Error = Self::Error>
The future that this action produces.
type Item
The item that the future may resolve with.
type Error
The error that the future may resolve with.
Required Methods
Implementors
impl<T: IntoFuture, F: FnMut() -> T> Action for F
impl<S: Service> Action for ServiceRequest<S> where
S::Request: Clone,