pub enum WorldStateError {
InvalidStateRoot,
IncompleteDatabase,
ValueAtIncompleteKey,
DecoderError,
InvalidHash,
ProtectedKey,
}Expand description
WorldStateError enumerates the possible error of WorldState.
Variants§
InvalidStateRoot
Attempted to create a trie with a state root not in the database.
IncompleteDatabase
Trie item not found in the database,
ValueAtIncompleteKey
A value was found in the trie with a nibble key that was not byte-aligned.
DecoderError
Corrupt Trie item.
InvalidHash
Encoded node contains invalid hash reference.
ProtectedKey
Attempted to convert protected WSKey to AppKey
Trait Implementations§
Source§impl Debug for WorldStateError
impl Debug for WorldStateError
Auto Trait Implementations§
impl Freeze for WorldStateError
impl RefUnwindSafe for WorldStateError
impl Send for WorldStateError
impl Sync for WorldStateError
impl Unpin for WorldStateError
impl UnwindSafe for WorldStateError
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