Skip to content

backoff

Structs


firma_sidecar::authority_client::backoff::ExponentialBackoff

Section titled “firma_sidecar::authority_client::backoff::ExponentialBackoff”

Struct

Exponential backoff for reconnect loops.

Methods:

  • fn new(min: Duration, max: Duration) -> Self - Build a new backoff using min as the first delay and max as cap.
  • fn next(self: & mut Self) -> Duration - Return the next jittered delay and advance the internal state.
  • fn reset(self: & mut Self) - Reset to the minimum delay.