Trait wasmer_wasix::os::command::VirtualCommand
source · pub trait VirtualCommandwhere
Self: Debug,{
// Required methods
fn name(&self) -> &str;
fn as_any(&self) -> &dyn Any;
fn exec<'a>(
&self,
parent_ctx: &FunctionEnvMut<'a, WasiEnv>,
path: &str,
store: &mut Option<Store>,
config: &mut Option<WasiEnv>
) -> Result<TaskJoinHandle, VirtualBusError>;
}
Expand description
A command available to an OS environment.
Required Methods§
sourcefn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
Retrieve the command as as a std::any::Any
reference.
sourcefn exec<'a>(
&self,
parent_ctx: &FunctionEnvMut<'a, WasiEnv>,
path: &str,
store: &mut Option<Store>,
config: &mut Option<WasiEnv>
) -> Result<TaskJoinHandle, VirtualBusError>
fn exec<'a>( &self, parent_ctx: &FunctionEnvMut<'a, WasiEnv>, path: &str, store: &mut Option<Store>, config: &mut Option<WasiEnv> ) -> Result<TaskJoinHandle, VirtualBusError>
Executes the command.