pub enum FoldRefusal {
Live(String),
Resumable,
WithinGrace,
Retained(String),
ProofIncomplete(String),
RecordGone,
Unreadable(String),
}Expand description
Why a fold left a run alone. A typed refusal lets the automatic callers
(clean::fold_one, and through it the idle janitor and the busy-time fold
turn) say why in their receipts; it never changes what is deleted.
Variants§
Live(String)
A lease or lock a live owner holds - the run’s execution lease or ownership lock, a source’s output lease, a Cargo build, the repository’s coordination lease - or a live daemon claim on the run.
Resumable
A resumable status: someone may still continue this run.
WithinGrace
Finished less than the fold grace period ago.
Retained(String)
An explicitly retained recovery source (pr_recovery).
ProofIncomplete(String)
The proof that nothing is lost is not complete: startup or candidate preservation unfinished, or the confirmed-merge source proof (Cargo residue, Git checkpoints, the fetched base) could not be established.
RecordGone
The run’s record is gone, or is not the record that was locked: it was deleted while the fold waited for its locks. Nothing is touched and nothing is recreated.
Unreadable(String)
The record was readable when the caller first looked and cannot be read once the run’s locks are held.
Trait Implementations§
Source§impl Clone for FoldRefusal
impl Clone for FoldRefusal
Source§impl Debug for FoldRefusal
impl Debug for FoldRefusal
Source§impl Display for FoldRefusal
impl Display for FoldRefusal
impl Eq for FoldRefusal
Source§impl Error for FoldRefusal
impl Error for FoldRefusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for FoldRefusal
impl PartialEq for FoldRefusal
impl StructuralPartialEq for FoldRefusal
Auto Trait Implementations§
impl Forget for FoldRefusal
impl Freeze for FoldRefusal
impl Move for FoldRefusal
impl RefUnwindSafe for FoldRefusal
impl Send for FoldRefusalwhere
RawVecInner: Send,
impl Sync for FoldRefusalwhere
RawVecInner: Sync,
impl Unpin for FoldRefusal
impl UnsafeUnpin for FoldRefusal
impl UnwindSafe for FoldRefusalwhere
RawVecInner: UnwindSafe,
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<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> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString. Read more