Trait paxakos::retry::RetryPolicy[][src]

pub trait RetryPolicy: 'static {
    type Invocation: Invocation;
    type Error;
    type StaticError;
    fn eval<'life0, 'async_trait>(
        &'life0 mut self,
        error: AppendError<Self::Invocation>
    ) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Policy that determines whether an append should be retried.

Associated Types

Parametrization of the paxakos algorithm.

Type of error produced by this policy.

Union of Self::Error and ShutDown.

See Node::append_static.

Required methods

Determines wheter another attempt to append should be made.

The given error is the reason the latest attempt failed. Returning Ok(()) implies that another attempt should be made.

Implementations on Foreign Types

Implementors