Skip to main content

Crate qubit_retry

Crate qubit_retry 

Source
Expand description

Type-preserving retry policy for synchronous and asynchronous operations.

Retry<E> binds only the operation error type. The success type T is introduced on run / run_async, so normal error retry does not require T: Clone + Eq + Hash.

The default error type is BoxError from the qubit-error crate. It is not re-exported by this crate; callers that need the boxed error alias should import it from qubit-error directly.

Re-exports§

pub use error::AttemptExecutorError;
pub use error::AttemptFailure;
pub use error::AttemptPanic;
pub use error::RetryConfigError;
pub use error::RetryError;
pub use error::RetryErrorReason;
pub use error::RetryResult;
pub use event::AttemptFailureDecision;
pub use event::AttemptFailureListener;
pub use event::AttemptSuccessListener;
pub use event::AttemptTimeoutSource;
pub use event::BeforeAttemptListener;
pub use event::RetryAfterHint;
pub use event::RetryContext;
pub use event::RetryErrorListener;
pub use event::RetryScheduledListener;
pub use executor::AttemptCancelToken;
pub use executor::Retry;
pub use executor::RetryBuilder;
pub use options::RetryConfigValues;
pub use options::AttemptTimeoutOption;
pub use options::AttemptTimeoutPolicy;
pub use options::ParseRetryJitterError;
pub use options::RetryDelay;
pub use options::RetryJitter;
pub use options::RetryOptions;

Modules§

constants
Configuration keys and built-in defaults for retry options.
error
Error types used by retry executors.
event
Retry event types and listener aliases.
executor
Retry executor and builder modules and public re-exports.
options
Retry option modules and public re-exports.