/*******************************************************************************
*
* Copyright (c) 2025 - 2026.
* Haixing Hu, Qubit Co. Ltd.
*
* All rights reserved.
*
******************************************************************************/
//! Retry context payload.
//!
//! Retry contexts are emitted after an attempt fails and before the executor sleeps
//! for the next attempt.
use Duration;
/// Context emitted before a retry sleep.
///
/// Carries retry metadata while the triggering failure is passed separately to
/// retry listeners.