pub struct BucketQuota {
pub max_streams: Option<u64>,
pub max_retained_bytes: Option<u64>,
}Expand description
Per-bucket data-plane quota stored in replicated state. None means
unlimited. Every Raft group stores the same record and enforces it
against its own local BucketUsage, so the cluster-wide bound is
limit × group_count: an abuse backstop, not exact tenant accounting.
Exact tenant-level enforcement happens at the gateway from aggregated
usage.
Fields§
§max_streams: Option<u64>§max_retained_bytes: Option<u64>Implementations§
Source§impl BucketQuota
impl BucketQuota
Sourcepub fn is_unlimited(&self) -> bool
pub fn is_unlimited(&self) -> bool
A quota with no limits carries no information; setting it clears the stored record.
Trait Implementations§
Source§impl Clone for BucketQuota
impl Clone for BucketQuota
Source§fn clone(&self) -> BucketQuota
fn clone(&self) -> BucketQuota
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 moreimpl Copy for BucketQuota
Source§impl Debug for BucketQuota
impl Debug for BucketQuota
Source§impl Default for BucketQuota
impl Default for BucketQuota
Source§fn default() -> BucketQuota
fn default() -> BucketQuota
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BucketQuota
impl<'de> Deserialize<'de> for BucketQuota
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
impl Eq for BucketQuota
Source§impl PartialEq for BucketQuota
impl PartialEq for BucketQuota
Source§impl Serialize for BucketQuota
impl Serialize for BucketQuota
impl StructuralPartialEq for BucketQuota
Auto Trait Implementations§
impl Freeze for BucketQuota
impl RefUnwindSafe for BucketQuota
impl Send for BucketQuota
impl Sync for BucketQuota
impl Unpin for BucketQuota
impl UnsafeUnpin for BucketQuota
impl UnwindSafe for BucketQuota
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