pub struct CleanupObservation { /* private fields */ }Expand description
Metadata for one bounded cleanup pass.
Implementations§
Source§impl CleanupObservation
impl CleanupObservation
Sourcepub const fn new(
requested: usize,
removed: Option<u64>,
elapsed: Duration,
consumption: ConsumptionStatus,
) -> Self
pub const fn new( requested: usize, removed: Option<u64>, elapsed: Duration, consumption: ConsumptionStatus, ) -> Self
Constructs cleanup metadata.
removed is None when a failed database operation has an unknown
commit result. consumption describes the certainty of that effect.
Sourcepub const fn requested(self) -> usize
pub const fn requested(self) -> usize
Returns the configured maximum work for this cleanup pass.
Sourcepub const fn removed(self) -> Option<u64>
pub const fn removed(self) -> Option<u64>
Returns confirmed rows or entries removed, when known.
Sourcepub const fn consumption(self) -> ConsumptionStatus
pub const fn consumption(self) -> ConsumptionStatus
Returns certainty about the reported cleanup effect.
Trait Implementations§
Source§impl Clone for CleanupObservation
impl Clone for CleanupObservation
Source§fn clone(&self) -> CleanupObservation
fn clone(&self) -> CleanupObservation
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 CleanupObservation
Source§impl Debug for CleanupObservation
impl Debug for CleanupObservation
impl Eq for CleanupObservation
Source§impl PartialEq for CleanupObservation
impl PartialEq for CleanupObservation
impl StructuralPartialEq for CleanupObservation
Auto Trait Implementations§
impl Freeze for CleanupObservation
impl RefUnwindSafe for CleanupObservation
impl Send for CleanupObservation
impl Sync for CleanupObservation
impl Unpin for CleanupObservation
impl UnsafeUnpin for CleanupObservation
impl UnwindSafe for CleanupObservation
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