pub enum StoreError {
NotFound(ContentHash),
HashMismatch(ContentHash),
BadManifest(String),
Io(Error),
}Expand description
Failure modes of a ChunkStore or blob operation.
Variants§
NotFound(ContentHash)
Requested hash is not in the store.
HashMismatch(ContentHash)
Stored bytes do not hash to their address (corruption or tampering).
BadManifest(String)
Stored manifest could not be decoded.
Io(Error)
Underlying storage I/O failure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StoreError
impl !RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin for StoreError
impl UnsafeUnpin for StoreError
impl !UnwindSafe for StoreError
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