pub(crate) struct Keeping {
kind: Option<AccountKind>,
never_wrote: bool,
idle_before: Option<OffsetDateTime>,
writers: Option<Writers>,
}Expand description
What a conditional hard delete checks each account against: before it
takes anything, and again for each account with that account’s writes
held off. See Registry::hard_delete_if.
Fields§
§kind: Option<AccountKind>Only accounts of this kind go.
never_wrote: boolOnly accounts known never to have written go, and no host or service
account unless kind names it.
idle_before: Option<OffsetDateTime>Only accounts whose last commit, or creation when there is none, is no later than this go.
writers: Option<Writers>writers, read once before the delete. A write the log gains after
this moves the account’s last commit, which idle_before refuses.
Implementations§
Source§impl Keeping
impl Keeping
Auto Trait Implementations§
impl Freeze for Keeping
impl RefUnwindSafe for Keeping
impl Send for Keeping
impl Sync for Keeping
impl Unpin for Keeping
impl UnsafeUnpin for Keeping
impl UnwindSafe for Keeping
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more