pub enum ApplyOutcome {
Created,
NoOp,
Updated,
StaleReplaced,
}Expand description
Outcome of apply. Exhaustive; callers match all variants for
migration messaging.
Variants§
Created
File did not previously exist; the full file was rendered.
NoOp
File existed; managed section was canonical. No write needed.
Updated
File existed; managed section drifted (content differs but template version matched). Section was rewritten.
StaleReplaced
File existed; managed section’s template_version was older
than TEMPLATE_VERSION. Section was replaced deterministically.
Trait Implementations§
Source§impl Clone for ApplyOutcome
impl Clone for ApplyOutcome
Source§fn clone(&self) -> ApplyOutcome
fn clone(&self) -> ApplyOutcome
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 moreSource§impl Debug for ApplyOutcome
impl Debug for ApplyOutcome
Source§impl PartialEq for ApplyOutcome
impl PartialEq for ApplyOutcome
Source§fn eq(&self, other: &ApplyOutcome) -> bool
fn eq(&self, other: &ApplyOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ApplyOutcome
impl Eq for ApplyOutcome
impl StructuralPartialEq for ApplyOutcome
Auto Trait Implementations§
impl Freeze for ApplyOutcome
impl RefUnwindSafe for ApplyOutcome
impl Send for ApplyOutcome
impl Sync for ApplyOutcome
impl Unpin for ApplyOutcome
impl UnsafeUnpin for ApplyOutcome
impl UnwindSafe for ApplyOutcome
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.