Skip to main content

Module retriable

Module retriable 

Source
Expand description

Declare the RetryTime enumeration and related code.

Re-exportsยง

use derive_more::From; ๐Ÿ”’
use derive_more::Into; ๐Ÿ”’
use std::cmp::Ordering; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use strum::EnumDiscriminants; ๐Ÿ”’
use web_time_compat::Instant; ๐Ÿ”’

Structsยง

LooseCmpRetryTime
A RetryTime wrapped so that it compares according to RetryTime::loose_cmp

Enumsยง

AbsRetryTime
An absolute RetryTime.
RetryTime
A description of when an operation may be retried.
RetryTimeDiscriminants ๐Ÿ”’
Auto-generated discriminant enum variants

Traitsยง

HasRetryTime
Trait for an error object that can tell us when the operation which generated it can be retried.