logo
pub struct ModuleState { /* private fields */ }
Expand description

Module state is essentially a ‘handle’ that is passed to a runtime engine to allow it to read and write relevant data as different low-level functions are executed during a waPC conversation

Implementations

Retrieves the value, if any, of the current guest request

Retrieves the value of the current host response

Sets a value indicating that an error occurred inside the execution of a guest call

Sets the value indicating the response data from a guest call

Queries the value of the current guest response

Queries the value of the current host error

Invoked when the guest module wishes to make a call on the host

Invoked when the guest module wants to write a message to the host’s stdout

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

Performs the conversion.

Performs the conversion.

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.