Enum sc_state_db::StateDbError
source · pub enum StateDbError {
Decoding(Error),
InvalidBlock,
InvalidBlockNumber,
InvalidParent,
IncompatiblePruningModes {
stored: PruningMode,
requested: PruningMode,
},
TooManySiblingBlocks {
number: u64,
},
BlockAlreadyExists,
Metadata(String),
BlockUnavailable,
BlockMissing,
}
Variants§
Decoding(Error)
Codec
decoding error.
InvalidBlock
Trying to canonicalize invalid block.
InvalidBlockNumber
Trying to insert block with invalid number.
InvalidParent
Trying to insert block with unknown parent.
IncompatiblePruningModes
Invalid pruning mode specified. Contains expected mode.
TooManySiblingBlocks
Too many unfinalized sibling blocks inserted.
BlockAlreadyExists
Trying to insert existing block.
Metadata(String)
Invalid metadata
Trying to get a block record from db while it is not commit to db yet
BlockMissing
Block record is missing from the pruning window
Trait Implementations§
source§impl Debug for StateDbError
impl Debug for StateDbError
source§impl<E> From<StateDbError> for Error<E>
impl<E> From<StateDbError> for Error<E>
source§fn from(inner: StateDbError) -> Self
fn from(inner: StateDbError) -> Self
Converts to this type from the input type.
source§impl PartialEq for StateDbError
impl PartialEq for StateDbError
source§fn eq(&self, other: &StateDbError) -> bool
fn eq(&self, other: &StateDbError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for StateDbError
impl StructuralPartialEq for StateDbError
Auto Trait Implementations§
impl Freeze for StateDbError
impl RefUnwindSafe for StateDbError
impl Send for StateDbError
impl Sync for StateDbError
impl Unpin for StateDbError
impl UnwindSafe for StateDbError
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