pub struct RetryIndefinitely<I>(/* private fields */);Implementations§
Source§impl<I> RetryIndefinitely<I>
impl<I> RetryIndefinitely<I>
pub fn without_pausing() -> Self
pub fn pausing_up_to(duration: Duration) -> Self
Trait Implementations§
Source§impl<I: Debug> Debug for RetryIndefinitely<I>
impl<I: Debug> Debug for RetryIndefinitely<I>
Source§impl<I: Invocation> RetryPolicy for RetryIndefinitely<I>
impl<I: Invocation> RetryPolicy for RetryIndefinitely<I>
Source§type Invocation = I
type Invocation = I
Parametrization of the paxakos algorithm.
Source§type Error = Infallible
type Error = Infallible
Type of error produced by this policy.
Source§type StaticError = ShutDown
type StaticError = ShutDown
Source§type Future = Pin<Box<dyn Future<Output = Result<(), <RetryIndefinitely<I> as RetryPolicy>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<(), <RetryIndefinitely<I> as RetryPolicy>::Error>> + Send>>
Type of future returned from RetryPolicy::eval.
Source§fn eval(&mut self, _err: AppendError<Self::Invocation>) -> Self::Future
fn eval(&mut self, _err: AppendError<Self::Invocation>) -> Self::Future
Determines wheter another attempt to append should be made. Read more
Auto Trait Implementations§
impl<I> Freeze for RetryIndefinitely<I>
impl<I> RefUnwindSafe for RetryIndefinitely<I>where
I: RefUnwindSafe,
impl<I> Send for RetryIndefinitely<I>
impl<I> Sync for RetryIndefinitely<I>where
I: Sync,
impl<I> Unpin for RetryIndefinitely<I>where
I: Unpin,
impl<I> UnsafeUnpin for RetryIndefinitely<I>
impl<I> UnwindSafe for RetryIndefinitely<I>where
I: 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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more