pub struct Retryable<P: PlatformTypes, T>(pub T, pub RetryTimer<P::Clock>);
Expand description
Used to associate a value with a RetryTimer.
The value is usually used as the basis for some
fallible IO, e.g. T
may be an outbound Req
-
Retryable
allows us to keep track of how many times
we’ve attempted to send this request and whether we
should consider it poisoned.
Tuple Fields§
§0: T
§1: RetryTimer<P::Clock>
Implementations§
Trait Implementations§
impl<P: Copy + PlatformTypes, T: Copy> Copy for Retryable<P, T>where P::Clock: Copy,
Auto Trait Implementations§
impl<P, T> RefUnwindSafe for Retryable<P, T>where T: RefUnwindSafe,
impl<P, T> Send for Retryable<P, T>where T: Send,
impl<P, T> Sync for Retryable<P, T>where T: Sync,
impl<P, T> Unpin for Retryable<P, T>where T: Unpin,
impl<P, T> UnwindSafe for Retryable<P, T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<F, A, TF, T> Sequence<F, A, TF> for T
impl<F, A, TF, T> Sequence<F, A, TF> for T
source§fn sequence<Ap>(self) -> <Ap as HKT1>::T<<F as HKT1>::T<A>>where
Self: Sized + Traversable<F, <Ap as HKT1>::T<A>, A, TF> + Foldable<F, <Ap as HKT1>::T<A>>,
Ap: HKT1,
<Ap as HKT1>::T<A>: Applicative<Ap, A> + ApplyOnce<Ap, A>,
<Ap as HKT1>::T<TF>: Applicative<Ap, TF> + ApplyOnce<Ap, TF>,
<Ap as HKT1>::T<<F as HKT1>::T<A>>: Applicative<Ap, <F as HKT1>::T<A>> + ApplyOnce<Ap, <F as HKT1>::T<A>>,
F: HKT1<T<<Ap as HKT1>::T<A>> = Self>,
fn sequence<Ap>(self) -> <Ap as HKT1>::T<<F as HKT1>::T<A>>where Self: Sized + Traversable<F, <Ap as HKT1>::T<A>, A, TF> + Foldable<F, <Ap as HKT1>::T<A>>, Ap: HKT1, <Ap as HKT1>::T<A>: Applicative<Ap, A> + ApplyOnce<Ap, A>, <Ap as HKT1>::T<TF>: Applicative<Ap, TF> + ApplyOnce<Ap, TF>, <Ap as HKT1>::T<<F as HKT1>::T<A>>: Applicative<Ap, <F as HKT1>::T<A>> + ApplyOnce<Ap, <F as HKT1>::T<A>>, F: HKT1<T<<Ap as HKT1>::T<A>> = Self>,
See
Sequence