Trait wasmer_wasix::runtime::WasiRuntime
source · 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§
sourcefn networking(&self) -> &DynVirtualNetworking
fn networking(&self) -> &DynVirtualNetworking
Provides access to all the networking related functions such as sockets. By default networking is not implemented.
sourcefn task_manager(&self) -> &Arc<dyn VirtualTaskManager>
fn task_manager(&self) -> &Arc<dyn VirtualTaskManager>
Retrieve the active VirtualTaskManager
.
Provided Methods§
sourcefn engine(&self) -> Option<Engine>
fn engine(&self) -> Option<Engine>
Get a wasmer::Engine
for module compilation.
sourcefn new_store(&self) -> Store
fn new_store(&self) -> Store
Create a new wasmer::Store
.
sourcefn http_client(&self) -> Option<&DynHttpClient>
fn http_client(&self) -> Option<&DynHttpClient>
Returns a HTTP client