pub struct QuotaTracker { /* private fields */ }Expand description
Tracks per-pod byte usage against a configurable quota.
Implementations§
Source§impl QuotaTracker
impl QuotaTracker
pub fn new(quota_bytes: Option<u64>) -> Self
pub fn with_initial_used(quota_bytes: Option<u64>, used: u64) -> Self
Trait Implementations§
Source§impl Clone for QuotaTracker
impl Clone for QuotaTracker
Source§fn clone(&self) -> QuotaTracker
fn clone(&self) -> QuotaTracker
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 moreAuto Trait Implementations§
impl Freeze for QuotaTracker
impl RefUnwindSafe for QuotaTracker
impl Send for QuotaTracker
impl Sync for QuotaTracker
impl Unpin for QuotaTracker
impl UnsafeUnpin for QuotaTracker
impl UnwindSafe for QuotaTracker
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