Enum fuel_vm::error::RuntimeError
source · pub enum RuntimeError {
Recoverable(PanicReason),
Halt(Error),
}
Expand description
Runtime error description that should either be specified in the protocol or halt the execution.
Variants§
Recoverable(PanicReason)
Specified error with well-formed fallback strategy.
Halt(Error)
Unspecified error that should halt the execution.
Implementations§
source§impl RuntimeError
impl RuntimeError
sourcepub const fn is_recoverable(&self) -> bool
pub const fn is_recoverable(&self) -> bool
Flag whether the error is recoverable.
Trait Implementations§
source§impl Debug for RuntimeError
impl Debug for RuntimeError
source§impl Display for RuntimeError
impl Display for RuntimeError
source§impl Error for RuntimeError
impl Error for RuntimeError
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 From<Bug> for RuntimeError
impl From<Bug> for RuntimeError
source§impl From<Error> for RuntimeError
impl From<Error> for RuntimeError
source§impl From<Infallible> for RuntimeError
impl From<Infallible> for RuntimeError
source§fn from(_e: Infallible) -> RuntimeError
fn from(_e: Infallible) -> RuntimeError
Converts to this type from the input type.
source§impl From<PanicReason> for RuntimeError
impl From<PanicReason> for RuntimeError
source§fn from(source: PanicReason) -> Self
fn from(source: PanicReason) -> Self
Converts to this type from the input type.
source§impl From<RuntimeError> for InterpreterError
impl From<RuntimeError> for InterpreterError
source§fn from(error: RuntimeError) -> Self
fn from(error: RuntimeError) -> Self
Converts to this type from the input type.
source§impl PartialEq<RuntimeError> for RuntimeError
impl PartialEq<RuntimeError> for RuntimeError
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeError
impl Send for RuntimeError
impl Sync for RuntimeError
impl Unpin for RuntimeError
impl !UnwindSafe for RuntimeError
Blanket Implementations§
source§impl<T> AnyDebug for Twhere
T: Any + Debug,
impl<T> AnyDebug for Twhere T: Any + Debug,
source§fn as_any_ref(&self) -> &(dyn Any + 'static)
fn as_any_ref(&self) -> &(dyn Any + 'static)
Returns a reference to the underlying type as
Any
.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