Registry / utility / retry-policies

retry-policies

JSON →
library0.5.2rscratesunverified

A collection of plug-and-play retry policies for Rust projects.

# Cargo.toml [dependencies] retry-policies = "0.5.2"
INSTALL
IMPORT
SIG · RETRY-POLICIES
R
retry-policies
utilityrustv0.5.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RetryPolicy
use retry_policies::RetryPolicy;

Use exponential backoff retry policy

use retry_policies::RetryPolicy; use retry_policies::policies::ExponentialBackoff; use std::time::Duration; fn main() { let policy = ExponentialBackoff::builder() .build_with_max_retries(3); let result = policy.retry(|| { println!("Attempting..."); Ok::<_, ()>(()) }); println!("Result: {:?}", result); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.5.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
retry-policies — cargo add retry-policies · libregistry