pub struct QuotaCharge {
pub scope: QuotaScope,
pub bytes: u64,
pub limits: QuotaLimits,
}Expand description
One charge an Admission decision asks the write’s batch to apply: one
operation and bytes against scope’s current window under limits.
The planner evaluates it with evaluate_quota on the value it read
and guards that read, so the charge is exact within one partition.
Fields§
§scope: QuotaScopeThe counter charged.
bytes: u64Bytes charged: 0 for ref writes, the declared size for UploadPack.
limits: QuotaLimitsThe window and caps.
Trait Implementations§
Source§impl Clone for QuotaCharge
impl Clone for QuotaCharge
Source§impl Debug for QuotaCharge
impl Debug for QuotaCharge
impl Eq for QuotaCharge
Source§impl PartialEq for QuotaCharge
impl PartialEq for QuotaCharge
impl StructuralPartialEq for QuotaCharge
Auto Trait Implementations§
impl Freeze for QuotaCharge
impl RefUnwindSafe for QuotaCharge
impl Send for QuotaCharge
impl Sync for QuotaCharge
impl Unpin for QuotaCharge
impl UnsafeUnpin for QuotaCharge
impl UnwindSafe for QuotaCharge
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