Struct async_wasi::snapshots::WasiCtx
source · pub struct WasiCtx {
pub args: Vec<String>,
pub io_state: IoState,
pub exit_code: u32,
/* private fields */
}
Fields§
§args: Vec<String>
§io_state: IoState
§exit_code: u32
Implementations§
source§impl WasiCtx
impl WasiCtx
pub fn new() -> Self
pub fn push_preopen(&mut self, host_path: PathBuf, guest_path: PathBuf)
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>)
pub fn get_mut_vfd(&mut self, fd: __wasi_fd_t) -> Result<&mut VFD, Errno>
pub fn get_vfd(&self, fd: __wasi_fd_t) -> Result<&VFD, Errno>
pub fn insert_vfd(&mut self, vfd: VFD) -> Result<__wasi_fd_t, Errno>
pub fn remove_vfd(&mut self, fd: __wasi_fd_t) -> Result<(), Errno>
pub fn renumber_vfd( &mut self, from: __wasi_fd_t, to: __wasi_fd_t ) -> Result<(), Errno>
Trait Implementations§
source§impl From<&WasiCtx> for SerialWasiCtx
impl From<&WasiCtx> for SerialWasiCtx
impl Send for WasiCtx
impl Sync for WasiCtx
Auto Trait Implementations§
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