Struct wasmer_engine::RuntimeError [−][src]
pub struct RuntimeError { /* fields omitted */ }Expand description
A struct representing an aborted instruction execution, with a message indicating the cause.
Implementations
Creates a new generic RuntimeError with the given message.
Example
let trap = wasmer_engine::RuntimeError::new("unexpected error"); assert_eq!("unexpected error", trap.message());
Returns a list of function frames in WebAssembly code that led to this trap happening.
Attempts to downcast the RuntimeError to a concrete type.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RuntimeErrorimpl Send for RuntimeErrorimpl Sync for RuntimeErrorimpl Unpin for RuntimeErrorimpl !UnwindSafe for RuntimeErrorBlanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::MetadataConverts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more