Enum cfx_storage::Error
source · pub enum Error {
Show 35 variants
Account(AccountError),
Io(Error),
IntegerConversionError(TryFromIntError),
ParseIntError(ParseIntError),
RlpDecodeError(DecoderError),
SqliteError(Error),
StrfmtFmtError(FmtError),
OutOfCapacity,
OutOfMem,
SlabKeyError,
MPTKeyNotFound,
MPTInvalidKeyLength {
length: usize,
length_limit: usize,
},
MPTInvalidValueLength {
length: usize,
length_limit: usize,
},
MPTTooManyNodes,
StateCommitWithoutMerkleHash,
DbNotExist,
DbValueError,
DbIsUnclean,
SnapshotCowCreation,
SnapshotCopyFailure,
SnapshotNotFound,
SnapshotAlreadyExists,
SnapshotMPTTrieNodeNotFound,
TooManyDeltaMPT,
DeltaMPTAlreadyExists,
DeltaMPTEntryNotFound,
DeltaMPTDestroyErrors {
e1: Option<Box<Error>>,
e2: Option<Box<Error>>,
},
UnsupportedByFreshlySyncedSnapshot(&'static str),
InvalidTrieProof,
InvalidSnapshotSyncProof,
FailedToCreateUnitTestDataDir,
ThreadPanicked(String),
MpscError,
SemaphoreTryAcquireError,
Msg(String),
}
Variants§
Account(AccountError)
Io(Error)
IntegerConversionError(TryFromIntError)
ParseIntError(ParseIntError)
RlpDecodeError(DecoderError)
SqliteError(Error)
StrfmtFmtError(FmtError)
OutOfCapacity
OutOfMem
SlabKeyError
MPTKeyNotFound
MPTInvalidKeyLength
MPTInvalidValueLength
MPTTooManyNodes
StateCommitWithoutMerkleHash
DbNotExist
DbValueError
DbIsUnclean
SnapshotCowCreation
SnapshotCopyFailure
SnapshotNotFound
SnapshotAlreadyExists
SnapshotMPTTrieNodeNotFound
TooManyDeltaMPT
DeltaMPTAlreadyExists
DeltaMPTEntryNotFound
DeltaMPTDestroyErrors
UnsupportedByFreshlySyncedSnapshot(&'static str)
InvalidTrieProof
InvalidSnapshotSyncProof
FailedToCreateUnitTestDataDir
ThreadPanicked(String)
MpscError
SemaphoreTryAcquireError
Msg(String)
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<AccountError> for Error
impl From<AccountError> for Error
source§fn from(source: AccountError) -> Error
fn from(source: AccountError) -> Error
Converts to this type from the input type.
source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
source§fn from(source: ParseIntError) -> Error
fn from(source: ParseIntError) -> Error
Converts to this type from the input type.
source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
source§fn from(source: TryFromIntError) -> Error
fn from(source: TryFromIntError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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