pub struct WriteAmplificationTracker { /* private fields */ }Expand description
Write amplification tracker
Implementations§
Source§impl WriteAmplificationTracker
impl WriteAmplificationTracker
Sourcepub async fn record_cache_write(&self, bytes: u64)
pub async fn record_cache_write(&self, bytes: u64)
Record cache write
Sourcepub async fn record_backing_write(&self, bytes: u64)
pub async fn record_backing_write(&self, bytes: u64)
Record backing store write
Sourcepub async fn amplification_factor(&self) -> f64
pub async fn amplification_factor(&self) -> f64
Calculate write amplification factor
Sourcepub async fn cache_writes(&self) -> u64
pub async fn cache_writes(&self) -> u64
Get cache writes
Sourcepub async fn backing_writes(&self) -> u64
pub async fn backing_writes(&self) -> u64
Get backing writes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WriteAmplificationTracker
impl !RefUnwindSafe for WriteAmplificationTracker
impl Send for WriteAmplificationTracker
impl Sync for WriteAmplificationTracker
impl Unpin for WriteAmplificationTracker
impl UnsafeUnpin for WriteAmplificationTracker
impl !UnwindSafe for WriteAmplificationTracker
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> 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