Expand description
Type-preserving retry executors for synchronous and asynchronous operations.
RetryExecutor<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-common crate. It is not
re-exported by this crate; callers that need the boxed error alias should
import it from qubit-common directly.
Re-exports§
pub use error::RetryAttemptFailure;pub use error::RetryConfigError;pub use error::RetryDecider;pub use error::RetryError;pub use event::RetryAbortContext;pub use event::RetryAbortListener;pub use event::RetryAttemptContext;pub use event::RetryContext;pub use event::RetryDecision;pub use event::RetryFailureContext;pub use event::RetryFailureListener;pub use event::RetryListener;pub use event::RetrySuccessContext;pub use event::RetrySuccessListener;pub use options::RetryDelay;pub use options::RetryJitter;pub use options::RetryOptions;
Modules§
- error
- Error types used by retry executors.
- event
- Retry context types and listener aliases.
- options
- Retry option modules and public re-exports.
Structs§
- Retry
Executor - Retry executor bound to an error type.
- Retry
Executor Builder - Builder for
RetryExecutor.
Type Aliases§
- Retry
Result - Result alias returned by retry executor execution.