pub enum StaleReason {
Deleted,
ResidueOnly,
}Expand description
Why a ManageError::StaleSnapshot was raised. The re-check that
fires immediately before a mutating write can fail in two
observably different ways, and both deserve their own operator-
facing wording.
-
Deleted— the re-check saw nothing at all under the entity’s prefix (or the singleton key wasNotFound). A concurrent delete completed cleanly. -
ResidueOnly— the re-check found keys, but none of them carry branch data: only*.lockfiles and / or aPROTECTED#marker remain. Operational metadata can outlive user-visible branch data when a concurrent delete runs partially, and writing HEAD against that residue would re-create the invalid-HEAD condition the doctor exists to prevent.
Variants§
Deleted
Nothing remains under the entity’s prefix (or its singleton
key returned NotFound).
ResidueOnly
Only operational metadata (lock files and / or a PROTECTED#
marker) remains under the entity’s prefix.
Trait Implementations§
Source§impl Clone for StaleReason
impl Clone for StaleReason
Source§fn clone(&self) -> StaleReason
fn clone(&self) -> StaleReason
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StaleReason
impl Debug for StaleReason
Source§impl Display for StaleReason
impl Display for StaleReason
Source§impl PartialEq for StaleReason
impl PartialEq for StaleReason
Source§fn eq(&self, other: &StaleReason) -> bool
fn eq(&self, other: &StaleReason) -> bool
self and other values to be equal, and is used by ==.impl Copy for StaleReason
impl Eq for StaleReason
impl StructuralPartialEq for StaleReason
Auto Trait Implementations§
impl Freeze for StaleReason
impl RefUnwindSafe for StaleReason
impl Send for StaleReason
impl Sync for StaleReason
impl Unpin for StaleReason
impl UnsafeUnpin for StaleReason
impl UnwindSafe for StaleReason
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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§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>
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>
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.