pub type TrieError<H> = TrieError<H, Error<H>>;
Expand description
As in trie_db
, but less generic, error type for the crate.
Aliased Type§
enum TrieError<H> {
InvalidStateRoot(H),
IncompleteDatabase(H),
ValueAtIncompleteKey(Vec<u8>, u8),
DecoderError(H, Error<H>),
InvalidHash(H, Vec<u8>),
}
Variants§
InvalidStateRoot(H)
Attempted to create a trie with a state root not in the DB.
IncompleteDatabase(H)
Trie item not found in the database,
ValueAtIncompleteKey(Vec<u8>, u8)
A value was found in the trie with a nibble key that was not byte-aligned. The first parameter is the byte-aligned part of the prefix and the second parameter is the remaining nibble.
DecoderError(H, Error<H>)
Corrupt Trie item.
InvalidHash(H, Vec<u8>)
Hash is not value.
Trait Implementations
§impl<T, E> Error for TrieError<T, E>
impl<T, E> Error for TrieError<T, E>
1.30.0 · 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()