pub struct DatabaseStat {
pub page_size: u32,
pub depth: u32,
pub branch_pages: usize,
pub leaf_pages: usize,
pub overflow_pages: usize,
pub entries: usize,
}
Expand description
Statistics for a database in the environment.
Fields§
§page_size: u32
Size of a database page. This is currently the same for all databases.
depth: u32
Depth (height) of the B-tree.
branch_pages: usize
Number of internal (non-leaf) pages
leaf_pages: usize
Number of leaf pages.
overflow_pages: usize
Number of overflow pages.
entries: usize
Number of data items.
Trait Implementations§
Source§impl Clone for DatabaseStat
impl Clone for DatabaseStat
Source§fn clone(&self) -> DatabaseStat
fn clone(&self) -> DatabaseStat
Returns a copy 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 DatabaseStat
impl Debug for DatabaseStat
impl Copy for DatabaseStat
Auto Trait Implementations§
impl Freeze for DatabaseStat
impl RefUnwindSafe for DatabaseStat
impl Send for DatabaseStat
impl Sync for DatabaseStat
impl Unpin for DatabaseStat
impl UnwindSafe for DatabaseStat
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes