Struct wasi_common::WasiCtx[][src]

pub struct WasiCtx {
    pub args: StringArray,
    pub env: StringArray,
    pub random: RefCell<Box<dyn RngCore>>,
    pub clocks: WasiClocks,
    pub sched: Box<dyn WasiSched>,
    pub table: Rc<RefCell<Table>>,
}

Fields

args: StringArrayenv: StringArrayrandom: RefCell<Box<dyn RngCore>>clocks: WasiClockssched: Box<dyn WasiSched>table: Rc<RefCell<Table>>

Implementations

impl WasiCtx[src]

pub fn new(
    random: RefCell<Box<dyn RngCore>>,
    clocks: WasiClocks,
    sched: Box<dyn WasiSched>,
    table: Rc<RefCell<Table>>
) -> Self
[src]

pub fn insert_file(&self, fd: u32, file: Box<dyn WasiFile>, caps: FileCaps)[src]

pub fn insert_dir(
    &self,
    fd: u32,
    dir: Box<dyn WasiDir>,
    caps: DirCaps,
    file_caps: FileCaps,
    path: PathBuf
)
[src]

pub fn table(&self) -> RefMut<'_, Table>[src]

pub fn push_arg(&mut self, arg: &str) -> Result<(), StringArrayError>[src]

pub fn push_env(
    &mut self,
    var: &str,
    value: &str
) -> Result<(), StringArrayError>
[src]

pub fn set_stdin(&mut self, f: Box<dyn WasiFile>)[src]

pub fn set_stdout(&mut self, f: Box<dyn WasiFile>)[src]

pub fn set_stderr(&mut self, f: Box<dyn WasiFile>)[src]

pub fn push_preopened_dir(
    &mut self,
    dir: Box<dyn WasiDir>,
    path: impl AsRef<Path>
) -> Result<(), Error>
[src]

Trait Implementations

impl UserErrorConversion for WasiCtx[src]

impl UserErrorConversion for WasiCtx[src]

impl WasiSnapshotPreview1 for WasiCtx[src]

fn args_get<'b, 'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    argv: &'life1 GuestPtr<'b, GuestPtr<'b, u8>>,
    argv_buf: &'life2 GuestPtr<'b, u8>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'b: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

fn args_sizes_get<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<(Size, Size), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn environ_get<'b, 'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    environ: &'life1 GuestPtr<'b, GuestPtr<'b, u8>>,
    environ_buf: &'life2 GuestPtr<'b, u8>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'b: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

fn environ_sizes_get<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<(Size, Size), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn clock_res_get<'life0, 'async_trait>(
    &'life0 self,
    id: Clockid
) -> Pin<Box<dyn Future<Output = Result<Timestamp, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn clock_time_get<'life0, 'async_trait>(
    &'life0 self,
    id: Clockid,
    precision: Timestamp
) -> Pin<Box<dyn Future<Output = Result<Timestamp, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_advise<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    offset: Filesize,
    len: Filesize,
    advice: Advice
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_allocate<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    offset: Filesize,
    len: Filesize
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_close<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_datasync<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_fdstat_get<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Fdstat, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_fdstat_set_flags<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    flags: Fdflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_fdstat_set_rights<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    fs_rights_base: Rights,
    fs_rights_inheriting: Rights
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_filestat_get<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_filestat_set_size<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    size: Filesize
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_filestat_set_times<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    atim: Timestamp,
    mtim: Timestamp,
    fst_flags: Fstflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_read<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    fd: Fd,
    iovs: &'life1 IovecArray<'a>
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_pread<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    fd: Fd,
    iovs: &'life1 IovecArray<'a>,
    offset: Filesize
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_write<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    fd: Fd,
    ciovs: &'life1 CiovecArray<'a>
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_pwrite<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    fd: Fd,
    ciovs: &'life1 CiovecArray<'a>,
    offset: Filesize
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_prestat_get<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Prestat, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_prestat_dir_name<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    fd: Fd,
    path: &'life1 GuestPtr<'a, u8>,
    path_max_len: Size
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_renumber<'life0, 'async_trait>(
    &'life0 self,
    from: Fd,
    to: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_seek<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    offset: Filedelta,
    whence: Whence
) -> Pin<Box<dyn Future<Output = Result<Filesize, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_sync<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_tell<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Filesize, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_readdir<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    fd: Fd,
    buf: &'life1 GuestPtr<'a, u8>,
    buf_len: Size,
    cookie: Dircookie
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn path_create_directory<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    dirfd: Fd,
    path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn path_filestat_get<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    dirfd: Fd,
    flags: Lookupflags,
    path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn path_filestat_set_times<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    dirfd: Fd,
    flags: Lookupflags,
    path: &'life1 GuestPtr<'a, str>,
    atim: Timestamp,
    mtim: Timestamp,
    fst_flags: Fstflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn path_open<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    dirfd: Fd,
    dirflags: Lookupflags,
    path: &'life1 GuestPtr<'a, str>,
    oflags: Oflags,
    fs_rights_base: Rights,
    fs_rights_inheriting: Rights,
    fdflags: Fdflags
) -> Pin<Box<dyn Future<Output = Result<Fd, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn path_remove_directory<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    dirfd: Fd,
    path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn path_rename<'a, 'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    src_fd: Fd,
    src_path: &'life1 GuestPtr<'a, str>,
    dest_fd: Fd,
    dest_path: &'life2 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

fn poll_oneoff<'a, 'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    subs: &'life1 GuestPtr<'a, Subscription>,
    events: &'life2 GuestPtr<'a, Event>,
    nsubscriptions: Size
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

fn proc_exit<'life0, 'async_trait>(
    &'life0 self,
    status: Exitcode
) -> Pin<Box<dyn Future<Output = Trap> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn proc_raise<'life0, 'async_trait>(
    &'life0 self,
    _sig: Signal
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn sched_yield<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn random_get<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    buf: &'life1 GuestPtr<'a, u8>,
    buf_len: Size
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn sock_recv<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    _fd: Fd,
    _ri_data: &'life1 IovecArray<'a>,
    _ri_flags: Riflags
) -> Pin<Box<dyn Future<Output = Result<(Size, Roflags), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn sock_send<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    _fd: Fd,
    _si_data: &'life1 CiovecArray<'a>,
    _si_flags: Siflags
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn sock_shutdown<'life0, 'async_trait>(
    &'life0 self,
    _fd: Fd,
    _how: Sdflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

impl WasiUnstable for WasiCtx[src]

fn args_get<'a, 'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    argv: &'life1 GuestPtr<'a, GuestPtr<'a, u8>>,
    argv_buf: &'life2 GuestPtr<'a, u8>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

fn args_sizes_get<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<(Size, Size), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn environ_get<'a, 'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    environ: &'life1 GuestPtr<'a, GuestPtr<'a, u8>>,
    environ_buf: &'life2 GuestPtr<'a, u8>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

fn environ_sizes_get<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<(Size, Size), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn clock_res_get<'life0, 'async_trait>(
    &'life0 self,
    id: Clockid
) -> Pin<Box<dyn Future<Output = Result<Timestamp, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn clock_time_get<'life0, 'async_trait>(
    &'life0 self,
    id: Clockid,
    precision: Timestamp
) -> Pin<Box<dyn Future<Output = Result<Timestamp, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_advise<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    offset: Filesize,
    len: Filesize,
    advice: Advice
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_allocate<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    offset: Filesize,
    len: Filesize
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_close<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_datasync<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_fdstat_get<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Fdstat, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_fdstat_set_flags<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    flags: Fdflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_fdstat_set_rights<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    fs_rights_base: Rights,
    fs_rights_inheriting: Rights
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_filestat_get<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_filestat_set_size<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    size: Filesize
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_filestat_set_times<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    atim: Timestamp,
    mtim: Timestamp,
    fst_flags: Fstflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_read<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    fd: Fd,
    iovs: &'life1 IovecArray<'a>
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_pread<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    fd: Fd,
    iovs: &'life1 IovecArray<'a>,
    offset: Filesize
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_write<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    fd: Fd,
    ciovs: &'life1 CiovecArray<'a>
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_pwrite<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    fd: Fd,
    ciovs: &'life1 CiovecArray<'a>,
    offset: Filesize
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_prestat_get<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Prestat, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_prestat_dir_name<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    fd: Fd,
    path: &'life1 GuestPtr<'a, u8>,
    path_max_len: Size
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_renumber<'life0, 'async_trait>(
    &'life0 self,
    from: Fd,
    to: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_seek<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd,
    offset: Filedelta,
    whence: Whence
) -> Pin<Box<dyn Future<Output = Result<Filesize, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_sync<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_tell<'life0, 'async_trait>(
    &'life0 self,
    fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Filesize, Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn fd_readdir<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    fd: Fd,
    buf: &'life1 GuestPtr<'a, u8>,
    buf_len: Size,
    cookie: Dircookie
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn path_create_directory<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    dirfd: Fd,
    path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn path_filestat_get<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    dirfd: Fd,
    flags: Lookupflags,
    path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn path_filestat_set_times<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    dirfd: Fd,
    flags: Lookupflags,
    path: &'life1 GuestPtr<'a, str>,
    atim: Timestamp,
    mtim: Timestamp,
    fst_flags: Fstflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn path_open<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    dirfd: Fd,
    dirflags: Lookupflags,
    path: &'life1 GuestPtr<'a, str>,
    oflags: Oflags,
    fs_rights_base: Rights,
    fs_rights_inheriting: Rights,
    fdflags: Fdflags
) -> Pin<Box<dyn Future<Output = Result<Fd, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn path_remove_directory<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    dirfd: Fd,
    path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn path_rename<'a, 'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    src_fd: Fd,
    src_path: &'life1 GuestPtr<'a, str>,
    dest_fd: Fd,
    dest_path: &'life2 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

fn poll_oneoff<'a, 'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    subs: &'life1 GuestPtr<'a, Subscription>,
    events: &'life2 GuestPtr<'a, Event>,
    nsubscriptions: Size
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
    Self: 'async_trait, 
[src]

fn proc_exit<'life0, 'async_trait>(
    &'life0 self,
    status: Exitcode
) -> Pin<Box<dyn Future<Output = Trap> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn proc_raise<'life0, 'async_trait>(
    &'life0 self,
    _sig: Signal
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn sched_yield<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

fn random_get<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    buf: &'life1 GuestPtr<'a, u8>,
    buf_len: Size
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn sock_recv<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    _fd: Fd,
    _ri_data: &'life1 IovecArray<'a>,
    _ri_flags: Riflags
) -> Pin<Box<dyn Future<Output = Result<(Size, Roflags), Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn sock_send<'a, 'life0, 'life1, 'async_trait>(
    &'life0 self,
    _fd: Fd,
    _si_data: &'life1 CiovecArray<'a>,
    _si_flags: Siflags
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + 'async_trait>> where
    'a: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

fn sock_shutdown<'life0, 'async_trait>(
    &'life0 self,
    _fd: Fd,
    _how: Sdflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Auto Trait Implementations

impl !RefUnwindSafe for WasiCtx

impl !Send for WasiCtx

impl !Sync for WasiCtx

impl Unpin for WasiCtx

impl !UnwindSafe for WasiCtx

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

fn in_current_span(self) -> Instrumented<Self>[src]

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Pointee for T[src]

type Pointer = u32

pub fn debug(
    pointer: <T as Pointee>::Pointer,
    f: &mut Formatter<'_>
) -> Result<(), Error>
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V