Enum sp_state_machine::ExecutionError
source · [−]pub enum ExecutionError {
Backend(DefaultError),
CodeEntryDoesNotExist,
UnableToGenerateProof,
InvalidProof,
}
Expand description
Externalities Error.
Externalities are not really allowed to have errors, since it’s assumed that dependent code would not be executed unless externalities were available. This is included for completeness, and as a transition away from the pre-existing framework.
Variants
Backend(DefaultError)
CodeEntryDoesNotExist
UnableToGenerateProof
InvalidProof
Trait Implementations
sourceimpl Debug for ExecutionError
impl Debug for ExecutionError
sourceimpl Display for ExecutionError
impl Display for ExecutionError
sourceimpl Error for ExecutionError
impl Error for ExecutionError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl PartialEq<ExecutionError> for ExecutionError
impl PartialEq<ExecutionError> for ExecutionError
sourcefn eq(&self, other: &ExecutionError) -> bool
fn eq(&self, other: &ExecutionError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ExecutionError) -> bool
fn ne(&self, other: &ExecutionError) -> bool
This method tests for !=
.
impl Eq for ExecutionError
impl StructuralEq for ExecutionError
impl StructuralPartialEq for ExecutionError
Auto Trait Implementations
impl RefUnwindSafe for ExecutionError
impl Send for ExecutionError
impl Sync for ExecutionError
impl Unpin for ExecutionError
impl UnwindSafe for ExecutionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
impl<T, Outer> IsWrappedBy<Outer> for T where
Outer: AsRef<T> + AsMut<T> + From<T>,
T: From<Outer>,
sourceimpl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for S where
T: UncheckedFrom<S>,
sourcepub fn unchecked_into(self) -> T
pub fn unchecked_into(self) -> T
The counterpart to unchecked_from
.