pub enum BlobCacheError {
Closed,
InvalidConfig(String),
InvalidBlob(String),
ContentMismatch(String),
Corrupt(String),
Reconciliation(String),
Policy(String),
Io {
operation: String,
source: Error,
},
}Expand description
Reports configuration, lifecycle, storage, or policy failures from crate::BlobCache.
Variants§
Closed
The operation requires an open cache, but crate::BlobCache::close already completed.
InvalidConfig(String)
Cache construction received an invalid directory, byte limit, or frequency counter count.
InvalidBlob(String)
A blob ID is empty, too large, or otherwise invalid.
ContentMismatch(String)
Existing content for a blob ID differs from the new immutable payload.
Corrupt(String)
A committed cache entry is malformed or fails integrity validation.
Reconciliation(String)
On-disk state and the in-memory eviction policy could not be reconciled.
Policy(String)
The admission or eviction policy failed.
Io
A filesystem operation failed.
Trait Implementations§
Source§impl Debug for BlobCacheError
impl Debug for BlobCacheError
Source§impl Display for BlobCacheError
impl Display for BlobCacheError
Source§impl Error for BlobCacheError
impl Error for BlobCacheError
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 BlobCacheError
impl !UnwindSafe for BlobCacheError
impl Freeze for BlobCacheError
impl Send for BlobCacheError
impl Sync for BlobCacheError
impl Unpin for BlobCacheError
impl UnsafeUnpin for BlobCacheError
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