pub enum CleanFailure {
Shard {
path: PathBuf,
source: FsError,
},
Manifest {
path: PathBuf,
source: FsError,
},
Entry {
path: PathBuf,
source: FsError,
},
Tmp {
path: PathBuf,
source: FsError,
},
Restore {
path: PathBuf,
source: FsError,
},
}Expand description
One best-effort failure collected during CacheWriter::clean
per AUX-028.
A clean run records these and keeps going rather than aborting,
so a single un-removable entry or unreadable shard does not
strand the rest of the plan. Each variant carries the path it
concerns and the originating FsError.
Variants§
Shard
A cache shard directory could not be read during planning, so its entries were skipped.
Fields
Manifest
An entry’s manifest could not be read (a real I/O error, not a simply-absent manifest), so the entry was skipped.
Fields
Entry
A planned entry directory could not be removed.
Fields
Tmp
An orphan .tmp- directory could not be removed.
Fields
Restore
An orphan .restore- directory could not be removed.
Trait Implementations§
Source§impl Debug for CleanFailure
impl Debug for CleanFailure
Source§impl Display for CleanFailure
impl Display for CleanFailure
Source§impl Error for CleanFailure
impl Error for CleanFailure
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()
Source§impl ErrorCompat for CleanFailure
impl ErrorCompat for CleanFailure
Source§fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
fn iter_chain(&self) -> ChainCompat<'_, '_>where
Self: AsErrorSource,
Returns an iterator for traversing the chain of errors,
starting with the current error
and continuing with recursive calls to
Error::source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CleanFailure
impl !UnwindSafe for CleanFailure
impl Freeze for CleanFailure
impl Send for CleanFailure
impl Sync for CleanFailure
impl Unpin for CleanFailure
impl UnsafeUnpin for CleanFailure
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
For maximum effectiveness, this needs to be called as a method
to benefit from Rust’s automatic dereferencing of method
receivers.
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