pub struct LockStatsSnapshot {
pub n_requests: u64,
pub n_waits: u64,
pub n_total_locks: u64,
pub n_read_locks: u64,
pub n_write_locks: u64,
pub n_owners: u64,
pub n_waiters: u64,
pub n_lock_tables: u64,
pub n_lock_timeouts: u64,
}Expand description
Snapshot of lock manager statistics.
LockStatDefinition.
Fields§
§n_requests: u64Total lock requests.
n_waits: u64Number of requests that waited (blocked).
n_total_locks: u64Number of distinct lock objects held.
n_read_locks: u64Number of read-lock holders.
n_write_locks: u64Number of write-lock holders.
n_owners: u64Number of distinct lock owners.
n_waiters: u64Number of lockers currently waiting.
n_lock_tables: u64Number of lock tables (shards).
n_lock_timeouts: u64Number of lock acquisitions that timed out.
Trait Implementations§
Source§impl Clone for LockStatsSnapshot
impl Clone for LockStatsSnapshot
Source§fn clone(&self) -> LockStatsSnapshot
fn clone(&self) -> LockStatsSnapshot
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 moreSource§impl Debug for LockStatsSnapshot
impl Debug for LockStatsSnapshot
Source§impl Default for LockStatsSnapshot
impl Default for LockStatsSnapshot
Source§fn default() -> LockStatsSnapshot
fn default() -> LockStatsSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LockStatsSnapshot
impl RefUnwindSafe for LockStatsSnapshot
impl Send for LockStatsSnapshot
impl Sync for LockStatsSnapshot
impl Unpin for LockStatsSnapshot
impl UnsafeUnpin for LockStatsSnapshot
impl UnwindSafe for LockStatsSnapshot
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