pub struct TenantTokenState {
pub in_flight: usize,
pub high_water: usize,
}Expand description
Snapshot of in-flight token usage for a single tenant.
in_flight is the total number of tokens currently reserved across all active
requests for the tenant. high_water is the all-time peak, useful for
capacity planning and alerting. Both values are updated atomically under the
TenantTokenTracker’s write lock.
Fields§
§in_flight: usize§high_water: usizeTrait Implementations§
Source§impl Clone for TenantTokenState
impl Clone for TenantTokenState
Source§fn clone(&self) -> TenantTokenState
fn clone(&self) -> TenantTokenState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TenantTokenState
impl Debug for TenantTokenState
Source§impl Default for TenantTokenState
impl Default for TenantTokenState
Source§fn default() -> TenantTokenState
fn default() -> TenantTokenState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TenantTokenState
impl RefUnwindSafe for TenantTokenState
impl Send for TenantTokenState
impl Sync for TenantTokenState
impl Unpin for TenantTokenState
impl UnsafeUnpin for TenantTokenState
impl UnwindSafe for TenantTokenState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more