pub struct ResetPlan { /* private fields */ }Expand description
Every entry for the tasks under one directory, which ResetPlan::apply
removes, and the shared step records it takes those tasks out of.
Implementations§
Source§impl ResetPlan
impl ResetPlan
Sourcepub fn counts(&self) -> EntryCounts
pub fn counts(&self) -> EntryCounts
How many entries the plan removes, and for how many tasks: the step records it removes, and apart from them the shared step records that only lose owners; the tasks count every task under the directory with a task record, a step position, learned order, or a step record it owns. A plan whose only change is to owner sets is not empty.
Sourcepub fn apply(&self, store: &Store) -> Result<(), StoreError>
pub fn apply(&self, store: &Store) -> Result<(), StoreError>
Removes the entries and takes the tasks under the directory out of the owners of the shared step records, all in one transaction.
§Errors
A StoreError when the removal cannot be committed; then nothing is
removed or changed.
Trait Implementations§
impl Eq for ResetPlan
impl StructuralPartialEq for ResetPlan
Auto Trait Implementations§
impl Freeze for ResetPlan
impl RefUnwindSafe for ResetPlan
impl Send for ResetPlan
impl Sync for ResetPlan
impl Unpin for ResetPlan
impl UnsafeUnpin for ResetPlan
impl UnwindSafe for ResetPlan
Blanket Implementations§
impl<T> AsTypeStaticRegistered for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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
Compare self to
key and return true if they are equal.§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<T> HasTyVTable for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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