pub struct DbStats { /* private fields */ }
Expand description
Stats represents statistics about the database.
Implementations§
Source§impl DbStats
impl DbStats
Sourcepub fn free_page_n(&self) -> i64
pub fn free_page_n(&self) -> i64
total number of free pages on the freelist
Sourcepub fn pending_page_n(&self) -> i64
pub fn pending_page_n(&self) -> i64
total number of pending pages on the freelist
Sourcepub fn free_alloc(&self) -> i64
pub fn free_alloc(&self) -> i64
total bytes allocated in free pages
Sourcepub fn free_list_in_use(&self) -> i64
pub fn free_list_in_use(&self) -> i64
total bytes used by the freelist
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for DbStats
impl !RefUnwindSafe for DbStats
impl Send for DbStats
impl Sync for DbStats
impl Unpin for DbStats
impl UnwindSafe for DbStats
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