pub struct QuotaUsage {
pub bytes_used: AtomicU64,
pub blocks_count: AtomicU64,
pub bytes_read: AtomicU64,
pub bytes_written: AtomicU64,
pub violations: AtomicU64,
pub last_reset: Mutex<SystemTime>,
}Expand description
Quota usage statistics
Fields§
§bytes_used: AtomicU64Current storage used in bytes
blocks_count: AtomicU64Current number of blocks
bytes_read: AtomicU64Total bytes read in current period
bytes_written: AtomicU64Total bytes written in current period
violations: AtomicU64Number of quota violations
last_reset: Mutex<SystemTime>Last reset time for bandwidth tracking
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for QuotaUsage
impl !RefUnwindSafe for QuotaUsage
impl Send for QuotaUsage
impl Sync for QuotaUsage
impl Unpin for QuotaUsage
impl UnwindSafe for QuotaUsage
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more