Enum wasmi::ResumableError [−][src]
pub enum ResumableError { Trap(Trap), NotResumable, AlreadyStarted, }
A resumable invocation error.
Variants
Trap(Trap)
Trap happened.
NotResumable
The invocation is not resumable.
Invocations are only resumable if a host function is called, and the host function returns a trap of Host
kind. For other cases, this error will be returned. This includes:
- The invocation is directly a host function.
- The invocation has not been started.
- The invocation returns normally or returns any trap other than
Host
kind.
This error is returned by resume_execution
.
AlreadyStarted
The invocation has already been started.
This error is returned by start_execution
.
Trait Implementations
impl Debug for ResumableError
[src]
impl Debug for ResumableError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Trap> for ResumableError
[src]
impl From<Trap> for ResumableError
Auto Trait Implementations
impl Send for ResumableError
impl Send for ResumableError
impl Sync for ResumableError
impl Sync for ResumableError