pub struct MaintenanceReport {
pub skipped: bool,
pub optimized: bool,
pub freelist_before: u64,
pub pages_reclaimed: u64,
pub vacuum_ran: bool,
pub wal_checkpoint: Option<WalCheckpoint>,
}Expand description
What a maintenance pass actually did — returned for observability/tests. A pass that ran while
a write transaction was open reports skipped.
Fields§
§skipped: boolThe pass was a no-op because a write transaction was open (best-effort: maintenance never disturbs an in-flight txn). All other fields are at their defaults.
optimized: boolPRAGMA optimize ran.
freelist_before: u64Freelist page count observed before the vacuum step (0 if the step did not inspect it).
pages_reclaimed: u64Pages actually returned to the OS this pass.
vacuum_ran: boolThe vacuum step ran (the freelist was over threshold on an incremental-vacuum database).
wal_checkpoint: Option<WalCheckpoint>The checkpoint result, if the checkpoint step ran.
Implementations§
Trait Implementations§
Source§impl Clone for MaintenanceReport
impl Clone for MaintenanceReport
Source§fn clone(&self) -> MaintenanceReport
fn clone(&self) -> MaintenanceReport
Returns a duplicate 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 MaintenanceReport
impl Debug for MaintenanceReport
Source§impl Default for MaintenanceReport
impl Default for MaintenanceReport
Source§fn default() -> MaintenanceReport
fn default() -> MaintenanceReport
Returns the “default value” for a type. Read more
Source§impl PartialEq for MaintenanceReport
impl PartialEq for MaintenanceReport
impl Copy for MaintenanceReport
impl Eq for MaintenanceReport
impl StructuralPartialEq for MaintenanceReport
Auto Trait Implementations§
impl Freeze for MaintenanceReport
impl RefUnwindSafe for MaintenanceReport
impl Send for MaintenanceReport
impl Sync for MaintenanceReport
impl Unpin for MaintenanceReport
impl UnsafeUnpin for MaintenanceReport
impl UnwindSafe for MaintenanceReport
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.