Crate backoff_config

Source
Expand description

ยง๐Ÿ”„ backoff-config โš™๏ธ

codecov

This crate enables declarative configuration of backon retry crate strategies via environment variables or configuration files by:

  • Unifying the backoff strategies provided by the backon retry crate into a single enum (see BackoffConfig).

  • Implementing serde::Deserialize to support loading strategies from various configuration sources. std::time::Duration values are deserialized using human-readable formats (e.g. 5s, 150 ms).

See examples and tests for example configuration formats.

Modulesยง

defaults
Contains the defaults used by the crate::BackoffConfig.

Enumsยง

Backoff
Supported backoffs.
BackoffConfig
Configuration for Backoff.