pub struct UsageMetrics {
pub storage_bytes: AtomicU64,
pub write_requests: AtomicU64,
pub read_requests: AtomicU64,
pub bytes_retrieved: AtomicU64,
pub bytes_transferred: AtomicU64,
pub period_start: Mutex<SystemTime>,
}Expand description
Usage tracking for cost calculation
Fields§
§storage_bytes: AtomicU64Total storage in bytes
write_requests: AtomicU64Total write requests
read_requests: AtomicU64Total read requests
bytes_retrieved: AtomicU64Total bytes retrieved
bytes_transferred: AtomicU64Total bytes transferred out
period_start: Mutex<SystemTime>Start time for this period
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for UsageMetrics
impl !RefUnwindSafe for UsageMetrics
impl Send for UsageMetrics
impl Sync for UsageMetrics
impl Unpin for UsageMetrics
impl UnwindSafe for UsageMetrics
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