pub struct DBStats {
pub free_page_n: usize,
pub pending_page_n: usize,
pub free_alloc: usize,
pub freelist_in_use: usize,
pub tx_n: usize,
pub open_tx_n: usize,
pub tx_stats: TxStats,
}Expand description
Stats represents statistics about the database.
Fields§
§free_page_n: usizetotal number of free pages on the freelist
pending_page_n: usizetotal number of pending pages on the freelist
free_alloc: usizetotal bytes allocated in free pages
freelist_in_use: usizetotal bytes used by the freelist
tx_n: usizetotal number of started read transactions
open_tx_n: usizenumber of currently open read transactions
tx_stats: TxStatsglobal, ongoing stats.
Trait Implementations§
Source§impl AddAssign for Stats
impl AddAssign for Stats
Source§fn add_assign(&mut self, other: Stats)
fn add_assign(&mut self, other: Stats)
Performs the
+= operation. Read moreAuto Trait Implementations§
impl Freeze for Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnwindSafe for Stats
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