Struct paxakos::prototyping::RetryIndefinitely
source · [−]pub struct RetryIndefinitely<I>(_, _);
Implementations
sourceimpl<I> RetryIndefinitely<I>
impl<I> RetryIndefinitely<I>
pub fn without_pausing() -> Self
pub fn pausing_up_to(duration: Duration) -> Self
Trait Implementations
sourceimpl<I: Debug> Debug for RetryIndefinitely<I>
impl<I: Debug> Debug for RetryIndefinitely<I>
sourceimpl<I: Invocation> RetryPolicy for RetryIndefinitely<I>
impl<I: Invocation> RetryPolicy for RetryIndefinitely<I>
type Invocation = I
type Invocation = I
Parametrization of the paxakos algorithm.
type Error = Infallible
type Error = Infallible
Type of error produced by this policy.
type StaticError = ShutDown
type StaticError = ShutDown
Union of Self::Error
and ShutDown
. Read more
type Future = Pin<Box<dyn Future<Output = Result<(), <RetryIndefinitely<I> as RetryPolicy>::Error>> + Send + 'static, Global>>
type Future = Pin<Box<dyn Future<Output = Result<(), <RetryIndefinitely<I> as RetryPolicy>::Error>> + Send + 'static, Global>>
Type of future returned from RetryPolicy::eval.
sourcefn 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> 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> UnwindSafe for RetryIndefinitely<I> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more