Skip to main content

Module limits

Module limits 

Source
Expand description

Pure quota and spend-cap admission decisions.

The edge or control plane owns the authoritative counters. This module only performs the overflow-safe decision so every deployment applies identical boundary semantics.

Structs§

Limits
Tenant limits. None means unbounded.
Usage
Usage already committed in the current window.

Enums§

LimitDecision
Successful reservation or the reason admission was denied.
LimitReason
Why a usage reservation was rejected.

Functions§

assess_limits
Atomically assess a proposed usage increment against quota and spend caps.