qubit-retry 0.5.0

Retry module, providing a feature-complete, type-safe retry management system with support for multiple delay strategies and event listeners
Documentation
/*******************************************************************************
 *
 *    Copyright (c) 2025 - 2026.
 *    Haixing Hu, Qubit Co. Ltd.
 *
 *    All rights reserved.
 *
 ******************************************************************************/
//! Abort context payload.
//!
//! Abort contexts are emitted when the retry decider chooses not to retry an
//! application error.

use std::time::Duration;

/// Context emitted when the retry decider aborts the operation.
///
/// Carries abort metadata while the triggering failure is passed separately to
/// abort listeners.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct RetryAbortContext {
    /// Number of attempts that were executed.
    pub attempts: u32,
    /// Total elapsed time observed by the retry executor.
    pub elapsed: Duration,
}