pub struct SpaceReport {
pub page_size: i64,
pub page_count: i64,
pub freelist_count: i64,
pub vacuumed: bool,
}Expand description
What MetaAdapter::reclaim_space found, and whether it acted on it.
page_size * page_count is the file’s size in bytes and
page_size * freelist_count the dead space inside it, both measured after
the rewrite when vacuumed is true and before it otherwise: the report is
quoted by the log line and the admin notification, so it describes the
database as it stands when the call returns. An all-zero report with
vacuumed: false is the trait default, meaning the adapter does not reclaim
space at all.
Fields§
§page_size: i64§page_count: i64§freelist_count: i64§vacuumed: boolWhether the free-page ratio cleared the caller’s threshold and a full rewrite actually ran.
Trait Implementations§
Source§impl Clone for SpaceReport
impl Clone for SpaceReport
Source§fn clone(&self) -> SpaceReport
fn clone(&self) -> SpaceReport
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 moreimpl Copy for SpaceReport
Source§impl Debug for SpaceReport
impl Debug for SpaceReport
Source§impl Default for SpaceReport
impl Default for SpaceReport
Source§fn default() -> SpaceReport
fn default() -> SpaceReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SpaceReport
impl RefUnwindSafe for SpaceReport
impl Send for SpaceReport
impl Sync for SpaceReport
impl Unpin for SpaceReport
impl UnsafeUnpin for SpaceReport
impl UnwindSafe for SpaceReport
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