Trait tokio_retry::Action[][src]

pub trait Action {
    type Future: Future<Output = Result<Self::Item, 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<Output = Result<Self::Item, Self::Error>>[src]

The future that this action produces.

type Item[src]

The item that the future may resolve with.

type Error[src]

The error that the future may resolve with.

Loading content...

Required methods

fn run(&mut self) -> Self::Future[src]

Loading content...

Implementors

impl<R, E, T: Future<Output = Result<R, E>>, F: FnMut() -> T> Action for F[src]

type Item = R

type Error = E

type Future = T

Loading content...