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

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

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.