pub struct RetryLink<L: Link> { /* private fields */ }
Expand description
Retry with resilience—comprehensive error recovery in action.
Implementations§
Trait Implementations§
Source§impl<L: Link> Link for RetryLink<L>
impl<L: Link> Link for RetryLink<L>
Source§fn call<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
) -> Pin<Box<dyn Future<Output = Result<Context, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn call<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
) -> Pin<Box<dyn Future<Output = Result<Context, Box<dyn Error + Send + Sync>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
With unconditional love, process and return a transformed context.
Implementations should be pure functions with no side effects.
Auto Trait Implementations§
impl<L> Freeze for RetryLink<L>where
L: Freeze,
impl<L> RefUnwindSafe for RetryLink<L>where
L: RefUnwindSafe,
impl<L> Send for RetryLink<L>
impl<L> Sync for RetryLink<L>
impl<L> Unpin for RetryLink<L>where
L: Unpin,
impl<L> UnwindSafe for RetryLink<L>where
L: 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