Enum wiggle::Trap [−][src]
Expand description
A runtime-independent way for Wiggle to terminate WebAssembly execution.
Functions that are marked (@witx noreturn)
will always return a Trap.
Other functions that want to Trap can do so via their UserErrorConversion
trait, which transforms the user’s own error type into a Result<abierror, Trap>
.
Variants
I32Exit(i32)
A Trap which indicates an i32 (posix-style) exit code. Runtimes may have a special way of dealing with this for WASI embeddings and otherwise.
Tuple Fields of I32Exit
0: i32
String(String)
Any other Trap is just an unstructured String, for reporting and debugging.
Tuple Fields of String
0: String
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Trap
impl UnwindSafe for Trap
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more