pub enum Error {
Show 21 variants
InvalidStartingBlock(BlockId),
BlockNotFound(H256),
IncompleteChain,
WrongStateRoot(H256, H256),
WrongBlockHash(u64, H256, H256),
TooManyBlocks(u64, u64),
OldBlockPrunedDB,
MissingCode(Vec<H256>),
UnrecognizedCodeState(u8),
RestorationAborted,
Trie(TrieError),
Decoder(DecoderError),
Io(Error),
VersionNotSupported(u64),
ChunkTooSmall,
ChunkTooLarge,
SnapshotsUnsupported,
SnapshotAborted,
BadEpochProof(u64),
WrongChunkFormat(String),
UnlinkedAncientBlockChain,
}
Expand description
Snapshot-related errors.
Variants
InvalidStartingBlock(BlockId)
Invalid starting block for snapshot.
BlockNotFound(H256)
Block not found.
IncompleteChain
Incomplete chain.
WrongStateRoot(H256, H256)
Best block has wrong state root.
WrongBlockHash(u64, H256, H256)
Wrong block hash.
TooManyBlocks(u64, u64)
Too many blocks contained within the snapshot.
OldBlockPrunedDB
Old starting block in a pruned database.
MissingCode(Vec<H256>)
Missing code.
UnrecognizedCodeState(u8)
Unrecognized code encoding.
RestorationAborted
Restoration aborted.
Trie(TrieError)
Trie error.
Decoder(DecoderError)
Decoder error.
Io(Error)
Io error.
VersionNotSupported(u64)
Snapshot version is not supported.
ChunkTooSmall
Max chunk size is to small to fit basic account data.
ChunkTooLarge
Oversized chunk
SnapshotsUnsupported
Snapshots not supported by the consensus engine.
SnapshotAborted
Aborted snapshot
BadEpochProof(u64)
Bad epoch transition.
WrongChunkFormat(String)
Wrong chunk format.
UnlinkedAncientBlockChain
Unlinked ancient block chain
Trait Implementations
sourceimpl From<DecoderError> for Error
impl From<DecoderError> for Error
sourcefn from(err: DecoderError) -> Self
fn from(err: DecoderError) -> Self
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more