Struct tokio_retry::Retry[][src]

pub struct Retry<I, A> where
    I: Iterator<Item = Duration>,
    A: Action
{ /* fields omitted */ }

Future that drives multiple attempts at an action via a retry strategy.

Implementations

impl<I, A> Retry<I, A> where
    I: Iterator<Item = Duration>,
    A: Action
[src]

pub fn spawn<T: IntoIterator<IntoIter = I, Item = Duration>>(
    strategy: T,
    action: A
) -> Retry<I, A>

Notable traits for Retry<I, A>

impl<I, A> Future for Retry<I, A> where
    I: Iterator<Item = Duration>,
    A: Action
type Output = Result<A::Item, A::Error>;
[src]

Trait Implementations

impl<I, A> Future for Retry<I, A> where
    I: Iterator<Item = Duration>,
    A: Action
[src]

type Output = Result<A::Item, A::Error>

The type of value produced on completion.

impl<'pin, I, A> Unpin for Retry<I, A> where
    I: Iterator<Item = Duration>,
    A: Action,
    __Retry<'pin, I, A>: Unpin
[src]

Auto Trait Implementations

impl<I, A> !RefUnwindSafe for Retry<I, A>

impl<I, A> Send for Retry<I, A> where
    A: Send,
    I: Send,
    <A as Action>::Future: Send

impl<I, A> Sync for Retry<I, A> where
    A: Sync,
    I: Sync,
    <A as Action>::Future: Sync

impl<I, A> !UnwindSafe for Retry<I, A>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<F> IntoFuture for F where
    F: Future
[src]

type Output = <F as Future>::Output

🔬 This is a nightly-only experimental API. (into_future)

The output that the future will produce on completion.

type Future = F

🔬 This is a nightly-only experimental API. (into_future)

Which kind of future are we turning this into?

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,