#[non_exhaustive]pub enum CacheError {
Io {
path: PathBuf,
source: Error,
},
NotACacheDir {
path: PathBuf,
tag: &'static str,
},
LowDiskSpace {
path: PathBuf,
bytes: u64,
},
}Expand description
Why a disk cache operation failed.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Io
A file system operation failed.
NotACacheDir
The directory exists but holds no cache marker, so it may hold someone else’s files.
LowDiskSpace
Writing would eat into the free space the automatic budget reserves
for the file system (auto_disk_reserve).
Trait Implementations§
Source§impl Debug for CacheError
impl Debug for CacheError
Source§impl Display for CacheError
impl Display for CacheError
Source§impl Error for CacheError
impl Error for CacheError
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 CacheError
impl !UnwindSafe for CacheError
impl Forget for CacheError
impl Freeze for CacheError
impl Move for CacheError
impl Send for CacheError
impl Sync for CacheError
impl Unpin for CacheError
impl UnsafeUnpin for CacheError
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