pub enum StorageError {
NotFound(Cid<64>, Error),
Internal(Error),
InvalidArgument(Error),
}Variants§
NotFound(Cid<64>, Error)
Block not found error. This error is may be temporarily as the block may comes available on the network.
Internal(Error)
Internal storage error. This indicates some invalid state and is not be retriable with same parameters.
InvalidArgument(Error)
Invalid argument passes to call or storage configuration. This is not be retriable with same parameters.
Trait Implementations§
Source§impl Clone for StorageError
impl Clone for StorageError
Source§fn clone(&self) -> StorageError
fn clone(&self) -> StorageError
Clone the StorageError. Note: The clone will only clone a Debug representation of the source error.
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StorageError
impl Debug for StorageError
Source§impl Display for StorageError
impl Display for StorageError
Source§impl Error for StorageError
impl Error for StorageError
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<BlockError> for StorageError
impl From<BlockError> for StorageError
Source§fn from(value: BlockError) -> StorageError
fn from(value: BlockError) -> StorageError
Converts to this type from the input type.
Source§impl From<BlockSerializerError> for StorageError
impl From<BlockSerializerError> for StorageError
Source§fn from(value: BlockSerializerError) -> StorageError
fn from(value: BlockSerializerError) -> StorageError
Converts to this type from the input type.
Source§impl From<CborError> for StorageError
impl From<CborError> for StorageError
Source§fn from(value: CborError) -> StorageError
fn from(value: CborError) -> StorageError
Converts to this type from the input type.
Source§impl From<Error> for StorageError
impl From<Error> for StorageError
Source§fn from(source: Error) -> StorageError
fn from(source: Error) -> StorageError
Converts to this type from the input type.
Source§impl From<JsonError> for StorageError
impl From<JsonError> for StorageError
Source§fn from(value: JsonError) -> StorageError
fn from(value: JsonError) -> StorageError
Converts to this type from the input type.
Source§impl From<MultiCodecError> for StorageError
impl From<MultiCodecError> for StorageError
Source§fn from(value: MultiCodecError) -> StorageError
fn from(value: MultiCodecError) -> StorageError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StorageError
impl RefUnwindSafe for StorageError
impl Send for StorageError
impl Sync for StorageError
impl Unpin for StorageError
impl UnsafeUnpin for StorageError
impl UnwindSafe for StorageError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more