Enum wasmi::ResumableError[][src]

pub enum ResumableError {
    Trap(Trap),
    NotResumable,
    AlreadyStarted,
}

A resumable invocation error.

Variants

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 Host kind.

This error is returned by resume_execution.

The invocation has already been started.

This error is returned by start_execution.

Trait Implementations

impl Debug for ResumableError
[src]

Formats the value using the given formatter. Read more

impl From<Trap> for ResumableError
[src]

Performs the conversion.

Auto Trait Implementations