pub enum Error {
Show 21 variants InvalidStartingBlock(BlockId), BlockNotFound(H256), IncompleteChain, WrongStateRoot(H256H256), WrongBlockHash(u64H256H256), TooManyBlocks(u64u64), 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(H256H256)

Best block has wrong state root.

WrongBlockHash(u64H256H256)

Wrong block hash.

TooManyBlocks(u64u64)

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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.