Skip to main content

Module rate_limit

Module rate_limit 

Expand description

Rate-limiting subscription opens on the session bindings (docs/design/subscriptions-websocket.md §6.7): the seam WebSocket and WebTransport call, implemented by cratestack-axum’s SubscriptionRateLimiter over OpExecutor::admit_rate_limit. One token per subscription Request; the session itself is not charged.

Structs§

SessionCharger
One session’s standing answer to “who pays”: built once per session and cloned into every subscription task. With no limiter it admits everything.
SubscriptionCharge
What a binding knows about one subscription open.

Enums§

SubscriptionRefusal
Why an open was refused before Ready.

Traits§

SubscriptionRateLimit
Charges one subscription open. Debug so binding configs keep deriving it.