pub enum RetentionError {
Io(Error),
UnreadableChain(PathBuf),
BudgetUnmet {
budget: u64,
remaining: u64,
protected_chain_heads: usize,
},
}Expand description
Typed retention failure (CP-13 fix1 I4/M2).
Variants§
Io(Error)
UnreadableChain(PathBuf)
A named-chain file could not be read or parsed: its head is UNKNOWN, so every destructive session operation fails closed.
BudgetUnmet
The disk budget could not be met after evicting every unprotected artifact (typed instead of a silent overshoot).
Trait Implementations§
Source§impl Debug for RetentionError
impl Debug for RetentionError
Source§impl Display for RetentionError
impl Display for RetentionError
Source§impl Error for RetentionError
impl Error for RetentionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for RetentionError
impl !UnwindSafe for RetentionError
impl Freeze for RetentionError
impl Send for RetentionError
impl Sync for RetentionError
impl Unpin for RetentionError
impl UnsafeUnpin for RetentionError
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