Struct wapc::ModuleState
source · [−]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
Returns the “default value” for a type. Read more