Struct redb::DatabaseStats
source · [−]pub struct DatabaseStats { /* private fields */ }
Implementations
sourceimpl DatabaseStats
impl DatabaseStats
sourcepub fn tree_height(&self) -> usize
pub fn tree_height(&self) -> usize
Maximum traversal distance to reach the deepest (key, value) pair, across all tables
sourcepub fn free_pages(&self) -> usize
pub fn free_pages(&self) -> usize
Number of free pages remaining
sourcepub fn stored_bytes(&self) -> usize
pub fn stored_bytes(&self) -> usize
Number of bytes consumed by keys and values that have been inserted. Does not include indexing overhead
sourcepub fn metadata_bytes(&self) -> usize
pub fn metadata_bytes(&self) -> usize
Number of bytes consumed by keys in internal index pages, plus other metadata
sourcepub fn fragmented_bytes(&self) -> usize
pub fn fragmented_bytes(&self) -> usize
Number of bytes consumed by fragmentation, both in data pages and internal metadata tables
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for DatabaseStats
impl Send for DatabaseStats
impl Sync for DatabaseStats
impl Unpin for DatabaseStats
impl UnwindSafe for DatabaseStats
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more