qubit-retry 0.7.2

Retry module, providing a feature-complete, type-safe retry management system with support for multiple delay strategies and event listeners
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*******************************************************************************
 *
 *    Copyright (c) 2025 - 2026.
 *    Haixing Hu, Qubit Co. Ltd.
 *
 *    All rights reserved.
 *
 ******************************************************************************/
//! Retry-after hint extractor alias.

use std::time::Duration;

use qubit_function::ArcBiFunction;

use crate::{AttemptFailure, RetryContext};

/// Extracts an optional retry-after delay from an attempt failure.
pub type RetryAfterHint<E> = ArcBiFunction<AttemptFailure<E>, RetryContext, Option<Duration>>;