Module qcs_api_client_common::backoff

source ·
Expand description

Exponential backoff for use with QCS.

This re-exports types from backoff and provides a default_backoff function to create a more useful default [ExpontentialBackoff].

Modules§

Structs§

  • SystemClock uses the system’s clock to get the current time. This Clock should be used for real use-cases.

Enums§

  • Error is the error value in an operation’s result.

Traits§

Functions§

  • Create a default ExponentialBackoff for use with QCS.
  • Return Some if the error is one that makes sense to retry and method is one that indicates it is safe to retry.
  • Return Some if the error is one that makes sense to retry and method is one that indicates it is safe to retry.
  • Return Some if the response specifies a Retry-After header or the provided backoff has another backoff to try.
  • Retries this operation according to the backoff policy. backoff is reset before it is used.
  • Retries this operation according to the backoff policy. Calls notify on failed attempts (in case of transient errors). backoff is reset before it is used.
  • Return true if the status code is one that could be retried.

Type Aliases§