pub enum Error<H> {
BadFormat,
Decode(Error),
InvalidRecording(Vec<u8>, bool),
TrieError(Box<TrieError<H, Self>>),
}
Expand description
Our NodeCodec
-specific error.
Error type used for trie related errors.
Variants§
Trait Implementations§
source§impl<H> Error for Error<H>where
Self: Debug + Display,
impl<H> Error for Error<H>where Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl<H: PartialEq> PartialEq<Error<H>> for Error<H>
impl<H: PartialEq> PartialEq<Error<H>> for Error<H>
impl<H: Eq> Eq for Error<H>
impl<H> StructuralEq for Error<H>
impl<H> StructuralPartialEq for Error<H>
Auto Trait Implementations§
impl<H> RefUnwindSafe for Error<H>where H: RefUnwindSafe,
impl<H> Send for Error<H>where H: Send,
impl<H> Sync for Error<H>where H: Sync,
impl<H> Unpin for Error<H>
impl<H> UnwindSafe for Error<H>where H: UnwindSafe,
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T, Outer> IsWrappedBy<Outer> for Twhere
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for Twhere Outer: AsRef<T> + AsMut<T> + From<T>, T: From<Outer>,
§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere T: UncheckedFrom<S>,
source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from
.