pub enum StoreError {
BlockNotFound(Cid),
NodeBlockTooLarge(u64, u64),
RawBlockTooLarge(u64, u64),
UnsupportedCodec(u64),
UnexpectedBlockCodec(Codec, Codec),
Custom(AnyError),
LayoutError(LayoutError),
}Expand description
An error that occurred during a file system operation.
Variants§
BlockNotFound(Cid)
The block was not found.
NodeBlockTooLarge(u64, u64)
The node block is too large.
RawBlockTooLarge(u64, u64)
The raw block is too large.
UnsupportedCodec(u64)
Codec not supported.
UnexpectedBlockCodec(Codec, Codec)
Expected block codec does not match the actual codec.
Custom(AnyError)
Custom error.
LayoutError(LayoutError)
Layout error.
Implementations§
Source§impl StoreError
impl StoreError
Sourcepub fn custom(error: impl Into<Error>) -> StoreError
pub fn custom(error: impl Into<Error>) -> StoreError
Creates a new Err result.
Trait Implementations§
Source§impl Debug for StoreError
impl Debug for StoreError
Source§impl Display for StoreError
impl Display for StoreError
Source§impl Error for StoreError
impl Error for StoreError
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 From<AnyError> for StoreError
impl From<AnyError> for StoreError
Source§impl From<LayoutError> for StoreError
impl From<LayoutError> for StoreError
Source§fn from(source: LayoutError) -> Self
fn from(source: LayoutError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StoreError
impl PartialEq for StoreError
impl StructuralPartialEq for StoreError
Auto Trait Implementations§
impl Freeze for StoreError
impl RefUnwindSafe for StoreError
impl Send for StoreError
impl Sync for StoreError
impl Unpin 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