Expand description
Helpers for retrying a fallible operation according to a backoff schedule.
Runner::run retries the specified operation according to the BackoffSchedule of the
Runner. Users can customize the backoff behavior by implementing BackoffSchedule.
Structsยง
- Runner ๐
- A runner for a fallible operation, which retries on failure according to a
BackoffSchedule.
Enumsยง
- Backoff
Error ๐ - The type of error encountered while running a fallible operation.
Traitsยง
- Backoff
Schedule ๐ - A trait that specifies the parameters for retrying a fallible operation.
- Retriable
Error ๐ - A trait for representing retriable errors.
Functionsยง
- optionally_
timeout ๐ - Wrap a
Futurewith an optional timeout.