Expand description
Cross-plane pacing primitives for requests and browser actions.
Donor implementations used to carry local copies of jitter and exponential backoff policy. This module keeps the timing math pure so HTTP clients, browser drivers, and mobile executors can share one contract without taking each other’s async or transport dependencies.
Structs§
- Backoff
Policy - Exponential retry backoff policy.
- Bounded
Normal Delay - Bounded normally-distributed delay envelope for human-like pacing.
- Jitter
- Random delay envelope with an exclusive upper bound.
- Request
Pacer - Human-like inter-request pacing policy.
Enums§
- Backoff
Kind - Retry category whose base delay differs by failure mode.
- Pacing
Error - Errors returned by pacing policy constructors.
Constants§
- BACKOFF_
429_ BASE_ MS - Base delay for 429 / rate-limit backoff.
- BACKOFF_
MAX_ RETRIES - Maximum number of retry attempts used by the fleet’s HTTP backoff policy.
- BACKOFF_
TIMEOUT_ BASE_ MS - Base delay for transient timeout backoff.
- MAX_
PACING_ BACKOFF - Hard ceiling on any pacing/backoff delay produced by this crate.
- MAX_
RETRY_ AFTER_ OBEYED - Upper bound for a server-named
Retry-Aftercooldown.
Functions§
- capped_
exponential_ backoff - Calculate a capped exponential backoff delay from caller-owned policy data.
- capped_
pow2_ backoff - Calculate a capped power-of-two exponential backoff for duration policies.
- capped_
pow2_ backoff_ ms - Calculate a capped power-of-two exponential backoff from millisecond inputs.
- jittered_
backoff - Apply deterministic ±20% jitter to a backoff duration.
- parse_
retry_ after - Parse a
Retry-Afterheader value at a caller-supplied clock reference. - percent_
jitter - Apply randomized symmetric percent jitter to a duration.
- percent_
jitter_ with_ rng - Apply randomized symmetric percent jitter using the caller’s RNG.