Skip to main content

Module gate

Expand description

The one place an iteration’s Suotar requests meet the circuit breakers and the limiter: every request is spent through the gate and recorded in it, and StudyRegistryGate::settle turns the records into the breaker and limiter effects.

Structs§

StudyRegistryGate 🔒
One iteration’s passage through the circuit breakers and the limiter. The adapter asks it how much it may send, spends that before sending, and records what came back; nothing else in an iteration touches breaker or rate_limit.
Tally 🔒
What the exchanges of one iteration said about the study registry.
Unavailable 🔒
A batch whose every item came back unavailable, which fails the iteration.

Enums§

Exchange 🔒
What one request to Suotar came to.
Verdict 🔒
What StudyRegistryGate::settle makes of a Tally.

Functions§

record_study_registry_success 🔒
verdict 🔒