#[non_exhaustive]pub struct QuotaPolicyLimits {
pub max_requests_per_window: u64,
pub requests_per_window_seconds: u64,
pub active_concurrency_cap: u64,
pub jitter_ms: u64,
}Expand description
Typed snapshot of the admission-relevant fields on a quota policy.
Returned by crate::engine_backend::EngineBackend::read_quota_policy_limits
so the scheduler can make admission decisions without reaching
directly at Valkey-shaped HGETs on ff:quota:{K}:def.
Fields match the Lua contract for ff_check_admission_and_record.
Zero values are the well-defined “no limit” signal (the scheduler
skips admission when both max_requests_per_window and
active_concurrency_cap are zero).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_requests_per_window: u64§requests_per_window_seconds: u64§active_concurrency_cap: u64§jitter_ms: u64Implementations§
Trait Implementations§
Source§impl Clone for QuotaPolicyLimits
impl Clone for QuotaPolicyLimits
Source§fn clone(&self) -> QuotaPolicyLimits
fn clone(&self) -> QuotaPolicyLimits
Returns a duplicate of the value. Read more
1.0.0 · 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 QuotaPolicyLimits
impl Debug for QuotaPolicyLimits
Source§impl<'de> Deserialize<'de> for QuotaPolicyLimits
impl<'de> Deserialize<'de> for QuotaPolicyLimits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for QuotaPolicyLimits
impl PartialEq for QuotaPolicyLimits
Source§impl Serialize for QuotaPolicyLimits
impl Serialize for QuotaPolicyLimits
impl Copy for QuotaPolicyLimits
impl Eq for QuotaPolicyLimits
impl StructuralPartialEq for QuotaPolicyLimits
Auto Trait Implementations§
impl Freeze for QuotaPolicyLimits
impl RefUnwindSafe for QuotaPolicyLimits
impl Send for QuotaPolicyLimits
impl Sync for QuotaPolicyLimits
impl Unpin for QuotaPolicyLimits
impl UnsafeUnpin for QuotaPolicyLimits
impl UnwindSafe for QuotaPolicyLimits
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