pub trait WasiRuntimewhere
    Self: Debug + Sync,{
    // Required methods
    fn networking(&self) -> &DynVirtualNetworking;
    fn task_manager(&self) -> &Arc<dyn VirtualTaskManager>;

    // Provided methods
    fn engine(&self) -> Option<Engine> { ... }
    fn new_store(&self) -> Store { ... }
    fn http_client(&self) -> Option<&DynHttpClient> { ... }
    fn tty(&self) -> Option<&(dyn TtyBridge + Send + Sync)> { ... }
}
Expand description

Represents an implementation of the WASI runtime - by default everything is unimplemented.

Required Methods§

source

fn networking(&self) -> &DynVirtualNetworking

Provides access to all the networking related functions such as sockets. By default networking is not implemented.

source

fn task_manager(&self) -> &Arc<dyn VirtualTaskManager>

Retrieve the active VirtualTaskManager.

Provided Methods§

source

fn engine(&self) -> Option<Engine>

Get a wasmer::Engine for module compilation.

source

fn new_store(&self) -> Store

Create a new wasmer::Store.

source

fn http_client(&self) -> Option<&DynHttpClient>

Returns a HTTP client

source

fn tty(&self) -> Option<&(dyn TtyBridge + Send + Sync)>

Get access to the TTY used by the environment.

Implementors§