#[non_exhaustive]pub struct DefragStats {
pub pages_examined: u64,
pub pages_freed: u64,
pub values_moved: u64,
pub freemap_orphans_reclaimed: u64,
}Expand description
I36: #[non_exhaustive] for symmetry with DefragOptions and so a
future bench-friendly stat (e.g. wall-time elapsed inside the sweep)
is not a breaking change.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pages_examined: u64§pages_freed: u64§values_moved: u64§freemap_orphans_reclaimed: u64Freemap-typed pages reclaimed by the orphan-sweep — pages a prior crash
stranded when it lost the in-memory structural recycle pool (see
TransactionManager::reclaim_freemap_orphans). 0 on a clean database.
Reported, not gating: a non-zero value means a past crash leaked freemap
pages that this pass returned to the bitmap as reusable space.
Trait Implementations§
Source§impl Clone for DefragStats
impl Clone for DefragStats
Source§fn clone(&self) -> DefragStats
fn clone(&self) -> DefragStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DefragStats
impl RefUnwindSafe for DefragStats
impl Send for DefragStats
impl Sync for DefragStats
impl Unpin for DefragStats
impl UnsafeUnpin for DefragStats
impl UnwindSafe for DefragStats
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