Enum wasmi::ResumableError [−][src]
pub enum ResumableError {
Trap(Trap),
NotResumable,
AlreadyStarted,
}A resumable invocation error.
Variants
Trap(Trap)Trap happened.
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
Hostkind.
This error is returned by resume_execution.
The invocation has already been started.
This error is returned by start_execution.