pub enum NativeError {
Runtime(RuntimeError),
Abi(AbiError),
ProgramMismatch,
FatalTrap {
value: Value,
},
}Expand description
A native-execution failure: a runtime error, an AOT/entry linkage error, or an unrecoverable native trap whose completion value carries a trap id.
Variants§
Runtime(RuntimeError)
A deterministic runtime error (throw, limit, or malformed value).
Abi(AbiError)
An AOT image or entry-table linkage failure.
ProgramMismatch
The entry table was not compiled from the supplied program’s canonical bytes.
FatalTrap
A native entry returned FatalTrap; value is the raw trap id word.
Trait Implementations§
Source§impl Clone for NativeError
impl Clone for NativeError
Source§fn clone(&self) -> NativeError
fn clone(&self) -> NativeError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NativeError
impl Debug for NativeError
Source§impl Display for NativeError
impl Display for NativeError
impl Eq for NativeError
Source§impl Error for NativeError
impl Error for NativeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<AbiError> for NativeError
impl From<AbiError> for NativeError
Source§impl From<RuntimeError> for NativeError
impl From<RuntimeError> for NativeError
Source§fn from(error: RuntimeError) -> Self
fn from(error: RuntimeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NativeError
impl PartialEq for NativeError
impl StructuralPartialEq for NativeError
Auto Trait Implementations§
impl Freeze for NativeError
impl RefUnwindSafe for NativeError
impl Send for NativeError
impl Sync for NativeError
impl Unpin for NativeError
impl UnsafeUnpin for NativeError
impl UnwindSafe for NativeError
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