pub struct PurgeReport {
pub tasks_deleted: u64,
pub journal_orphans_deleted: u64,
pub batches: u32,
pub complete: bool,
}Expand description
What one call to purge_expired did.
Fields§
§tasks_deleted: u64Task rows deleted.
journal_orphans_deleted: u64Artifact-journal rows this sweep had to reclaim itself.
Normally zero, and that is the healthy reading: the journal has an
ON DELETE CASCADE, so on a pool with foreign_keys=ON — which
SqliteTaskStore::new sets — the rows go with the task and the sweep
finds nothing left to do. A non-zero count means rows had outlived
their task, which happens when from_pool was handed a pool without
the pragma. Always zero on PostgreSQL, which has no journal table.
batches: u32Batches executed.
complete: boolfalse when RetentionPolicy::max_batches stopped the sweep with
work still to do, so a caller can tell “nothing left” from “ran out of
budget” instead of inferring it from a count.
Trait Implementations§
Source§impl Clone for PurgeReport
impl Clone for PurgeReport
Source§fn clone(&self) -> PurgeReport
fn clone(&self) -> PurgeReport
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 PurgeReport
Source§impl Debug for PurgeReport
impl Debug for PurgeReport
Source§impl Default for PurgeReport
impl Default for PurgeReport
Source§fn default() -> PurgeReport
fn default() -> PurgeReport
Returns the “default value” for a type. Read more
impl Eq for PurgeReport
Source§impl PartialEq for PurgeReport
impl PartialEq for PurgeReport
impl StructuralPartialEq for PurgeReport
Auto Trait Implementations§
impl Freeze for PurgeReport
impl RefUnwindSafe for PurgeReport
impl Send for PurgeReport
impl Sync for PurgeReport
impl Unpin for PurgeReport
impl UnsafeUnpin for PurgeReport
impl UnwindSafe for PurgeReport
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request