#[repr(C)]
pub struct VMInterrupts { pub stack_limit: AtomicUsize, }
Expand description

Structure used to control interrupting wasm code, currently with only one atomic flag internally used.

Fields

stack_limit: AtomicUsize

Current stack limit of the wasm module.

This is used to control both stack overflow as well as interrupting wasm modules. For more information see crates/environ/src/cranelift.rs.

Implementations

Flag that an interrupt should occur

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

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.