pub struct ConcurrencyStats {
pub read_locks: u64,
pub write_locks: u64,
pub total_wait_time: Duration,
pub contentions: u64,
}Expand description
Statistics for concurrent access patterns
Fields§
§read_locks: u64Number of read locks acquired
write_locks: u64Number of write locks acquired
total_wait_time: DurationTotal time spent waiting for locks
contentions: u64Number of lock contentions
Trait Implementations§
Source§impl Clone for ConcurrencyStats
impl Clone for ConcurrencyStats
Source§fn clone(&self) -> ConcurrencyStats
fn clone(&self) -> ConcurrencyStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConcurrencyStats
impl Debug for ConcurrencyStats
Source§impl Default for ConcurrencyStats
impl Default for ConcurrencyStats
Source§fn default() -> ConcurrencyStats
fn default() -> ConcurrencyStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConcurrencyStats
impl RefUnwindSafe for ConcurrencyStats
impl Send for ConcurrencyStats
impl Sync for ConcurrencyStats
impl Unpin for ConcurrencyStats
impl UnwindSafe for ConcurrencyStats
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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