pub struct Stat(/* private fields */);
Expand description
Environment statistics.
Contains information about the size and layout of an LMDB environment or database.
Implementations§
Source§impl Stat
impl Stat
Sourcepub fn page_size(&self) -> u32
pub fn page_size(&self) -> u32
Size of a database page. This is the same for all databases in the environment.
Sourcepub fn branch_pages(&self) -> usize
pub fn branch_pages(&self) -> usize
Number of internal (non-leaf) pages.
Sourcepub fn leaf_pages(&self) -> usize
pub fn leaf_pages(&self) -> usize
Number of leaf pages.
Sourcepub fn overflow_pages(&self) -> usize
pub fn overflow_pages(&self) -> usize
Number of overflow pages.
Auto Trait Implementations§
impl Freeze for Stat
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnwindSafe for Stat
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