Enum trie_db::TrieError [−][src]
pub enum TrieError<T, E> {
InvalidStateRoot(T),
IncompleteDatabase(T),
ValueAtIncompleteKey(Vec<u8>, u8),
DecoderError(T, E),
InvalidHash(T, Vec<u8>),
}Expand description
Trie Errors.
These borrow the data within them to avoid excessive copying on every trie operation.
Variants
Attempted to create a trie with a state root not in the DB.
Trie item not found in the database,
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.
Corrupt Trie item
Trait Implementations
impl<T, E> Display for TrieError<T, E> where
T: MaybeDebug,
E: MaybeDebug, [src]
impl<T, E> Display for TrieError<T, E> where
T: MaybeDebug,
E: MaybeDebug, [src]impl<T, E> Error for TrieError<T, E> where
T: Debug,
E: Error, [src]
impl<T, E> Error for TrieError<T, E> where
T: Debug,
E: Error, [src]fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]use the Display impl or to_string()
impl<T: Eq, E: Eq> Eq for TrieError<T, E>[src]
impl<T, E> StructuralEq for TrieError<T, E>[src]
impl<T, E> StructuralPartialEq for TrieError<T, E>[src]
Auto Trait Implementations
impl<T, E> RefUnwindSafe for TrieError<T, E> where
E: RefUnwindSafe,
T: RefUnwindSafe,
E: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, E> Send for TrieError<T, E> where
E: Send,
T: Send,
E: Send,
T: Send,
impl<T, E> Sync for TrieError<T, E> where
E: Sync,
T: Sync,
E: Sync,
T: Sync,
impl<T, E> Unpin for TrieError<T, E> where
E: Unpin,
T: Unpin,
E: Unpin,
T: Unpin,
impl<T, E> UnwindSafe for TrieError<T, E> where
E: UnwindSafe,
T: UnwindSafe,
E: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> MaybeDebug for T where
T: Debug, [src]
T: Debug,