pub struct WasiCtx {
pub args: Vec<String>,
pub exit_code: u32,
/* private fields */
}
Fields§
§args: Vec<String>
§exit_code: u32
Implementations§
Source§impl WasiCtx
impl WasiCtx
pub fn new() -> Self
pub fn create_with_vfs(vfs: VFS) -> Self
pub fn mount_file_sys( &mut self, guest_path: &str, file_sys: Box<dyn WasiFileSys<Index = usize> + Send + Sync>, )
pub fn push_arg(&mut self, arg: String)
pub fn push_args(&mut self, args: Vec<String>)
pub fn push_envs(&mut self, envs: Vec<String>)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WasiCtx
impl !RefUnwindSafe for WasiCtx
impl Send for WasiCtx
impl Sync for WasiCtx
impl Unpin for WasiCtx
impl !UnwindSafe for WasiCtx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more