Struct wasmtime_wasi::preview1::WasiP1Ctx
source · pub struct WasiP1Ctx { /* private fields */ }
preview1
only.Expand description
Structure containing state for WASIp1.
This structure is created through WasiCtxBuilder::build_p1
and is
configured through the various methods of WasiCtxBuilder
. This structure
itself implements generated traits for WASIp1 as well as WasiView
to
have access to WASIp2.
Instances of WasiP1Ctx
are typically stored within the T
of
Store<T>
.
§Examples
use wasmtime::{Result, Linker};
use wasmtime_wasi::preview1::{self, WasiP1Ctx};
use wasmtime_wasi::WasiCtxBuilder;
struct MyState {
// ... custom state as necessary ...
wasi: WasiP1Ctx,
}
impl MyState {
fn new() -> MyState {
MyState {
// .. initialize custom state if needed ..
wasi: WasiCtxBuilder::new()
.arg("./foo.wasm")
// .. more customization if necesssary ..
.build_p1(),
}
}
}
fn add_to_linker(linker: &mut Linker<MyState>) -> Result<()> {
preview1::add_to_linker_sync(linker, |my_state| &mut my_state.wasi)?;
Ok(())
}
Trait Implementations§
source§impl WasiSnapshotPreview1 for WasiP1Ctx
impl WasiSnapshotPreview1 for WasiP1Ctx
source§fn fd_allocate(
&mut self,
fd: Fd,
_offset: Filesize,
_len: Filesize
) -> Result<(), Error>
fn fd_allocate( &mut self, fd: Fd, _offset: Filesize, _len: Filesize ) -> Result<(), Error>
Force the allocation of space in a file.
NOTE: This is similar to posix_fallocate
in POSIX.
source§fn fd_close<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fd_close<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Close a file descriptor.
NOTE: This is similar to close
in POSIX.
source§fn fd_datasync<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fd_datasync<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Synchronize the data of a file to disk.
NOTE: This is similar to fdatasync
in POSIX.
source§fn fd_fdstat_get<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Fdstat, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fd_fdstat_get<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Fdstat, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get the attributes of a file descriptor.
NOTE: This returns similar flags to fsync(fd, F_GETFL)
in POSIX, as well as additional fields.
source§fn fd_fdstat_set_flags(&mut self, fd: Fd, flags: Fdflags) -> Result<(), Error>
fn fd_fdstat_set_flags(&mut self, fd: Fd, flags: Fdflags) -> Result<(), Error>
Adjust the flags associated with a file descriptor.
NOTE: This is similar to fcntl(fd, F_SETFL, flags)
in POSIX.
source§fn fd_fdstat_set_rights(
&mut self,
fd: Fd,
_fs_rights_base: Rights,
_fs_rights_inheriting: Rights
) -> Result<(), Error>
fn fd_fdstat_set_rights( &mut self, fd: Fd, _fs_rights_base: Rights, _fs_rights_inheriting: Rights ) -> Result<(), Error>
Does not do anything if fd
corresponds to a valid descriptor and returns [types::Errno::Badf]
error otherwise.
source§fn fd_filestat_get<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fd_filestat_get<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Return the attributes of an open file.
source§fn fd_filestat_set_size<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
size: Filesize
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fd_filestat_set_size<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
size: Filesize
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Adjust the size of an open file. If this increases the file’s size, the extra bytes are filled with zeros.
NOTE: This is similar to ftruncate
in POSIX.
source§fn fd_filestat_set_times<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
atim: Timestamp,
mtim: Timestamp,
fst_flags: Fstflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fd_filestat_set_times<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
atim: Timestamp,
mtim: Timestamp,
fst_flags: Fstflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Adjust the timestamps of an open file or directory.
NOTE: This is similar to futimens
in POSIX.
source§fn fd_read<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
iovs: &'life1 IovecArray<'a>
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fd_read<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
iovs: &'life1 IovecArray<'a>
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Read from a file descriptor.
NOTE: This is similar to readv
in POSIX.
source§fn fd_pread<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
iovs: &'life1 IovecArray<'a>,
offset: Filesize
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fd_pread<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
iovs: &'life1 IovecArray<'a>,
offset: Filesize
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Read from a file descriptor, without using and updating the file descriptor’s offset.
NOTE: This is similar to preadv
in POSIX.
source§fn fd_write<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
ciovs: &'life1 CiovecArray<'a>
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fd_write<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
ciovs: &'life1 CiovecArray<'a>
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write to a file descriptor.
NOTE: This is similar to writev
in POSIX.
source§fn fd_pwrite<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
ciovs: &'life1 CiovecArray<'a>,
offset: Filesize
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn fd_pwrite<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
ciovs: &'life1 CiovecArray<'a>,
offset: Filesize
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Write to a file descriptor, without using and updating the file descriptor’s offset.
NOTE: This is similar to pwritev
in POSIX.
source§fn fd_prestat_get(&mut self, fd: Fd) -> Result<Prestat, Error>
fn fd_prestat_get(&mut self, fd: Fd) -> Result<Prestat, Error>
Return a description of the given preopened file descriptor.
source§fn fd_prestat_dir_name<'a>(
&mut self,
fd: Fd,
path: &GuestPtr<'a, u8>,
path_max_len: Size
) -> Result<(), Error>
fn fd_prestat_dir_name<'a>( &mut self, fd: Fd, path: &GuestPtr<'a, u8>, path_max_len: Size ) -> Result<(), Error>
Return a description of the given preopened file descriptor.
source§fn fd_renumber(&mut self, from: Fd, to: Fd) -> Result<(), Error>
fn fd_renumber(&mut self, from: Fd, to: Fd) -> Result<(), Error>
Atomically replace a file descriptor by renumbering another file descriptor.
source§fn fd_seek<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
offset: Filedelta,
whence: Whence
) -> Pin<Box<dyn Future<Output = Result<Filesize, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fd_seek<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
offset: Filedelta,
whence: Whence
) -> Pin<Box<dyn Future<Output = Result<Filesize, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Move the offset of a file descriptor.
NOTE: This is similar to lseek
in POSIX.
source§fn fd_sync<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fd_sync<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Synchronize the data and metadata of a file to disk.
NOTE: This is similar to fsync
in POSIX.
source§fn fd_tell(&mut self, fd: Fd) -> Result<Filesize, Error>
fn fd_tell(&mut self, fd: Fd) -> Result<Filesize, Error>
Return the current offset of a file descriptor.
NOTE: This is similar to lseek(fd, 0, SEEK_CUR)
in POSIX.
source§fn path_filestat_get<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
flags: Lookupflags,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn path_filestat_get<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
flags: Lookupflags,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Return the attributes of a file or directory.
NOTE: This is similar to stat
in POSIX.
source§fn path_filestat_set_times<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
flags: Lookupflags,
path: &'life1 GuestPtr<'a, str>,
atim: Timestamp,
mtim: Timestamp,
fst_flags: Fstflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn path_filestat_set_times<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
flags: Lookupflags,
path: &'life1 GuestPtr<'a, str>,
atim: Timestamp,
mtim: Timestamp,
fst_flags: Fstflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Adjust the timestamps of a file or directory.
NOTE: This is similar to utimensat
in POSIX.
source§fn path_link<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
src_fd: Fd,
src_flags: Lookupflags,
src_path: &'life1 GuestPtr<'a, str>,
target_fd: Fd,
target_path: &'life2 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn path_link<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
src_fd: Fd,
src_flags: Lookupflags,
src_path: &'life1 GuestPtr<'a, str>,
target_fd: Fd,
target_path: &'life2 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Create a hard link.
NOTE: This is similar to linkat
in POSIX.
source§fn path_open<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn path_open<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Open a file or directory.
NOTE: This is similar to openat
in POSIX.
source§fn path_readlink<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>,
buf: &'life2 GuestPtr<'a, u8>,
buf_len: Size
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn path_readlink<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>,
buf: &'life2 GuestPtr<'a, u8>,
buf_len: Size
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Read the contents of a symbolic link.
NOTE: This is similar to readlinkat
in POSIX.
source§fn path_rename<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn path_rename<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut 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>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Rename a file or directory.
NOTE: This is similar to renameat
in POSIX.
fn args_get<'b>( &mut self, argv: &GuestPtr<'b, GuestPtr<'b, u8>>, argv_buf: &GuestPtr<'b, u8> ) -> Result<(), Error>
fn args_sizes_get(&mut self) -> Result<(Size, Size), Error>
fn environ_get<'b>( &mut self, environ: &GuestPtr<'b, GuestPtr<'b, u8>>, environ_buf: &GuestPtr<'b, u8> ) -> Result<(), Error>
fn environ_sizes_get(&mut self) -> Result<(Size, Size), Error>
fn clock_res_get(&mut self, id: Clockid) -> Result<Timestamp, Error>
fn clock_time_get( &mut self, id: Clockid, _precision: Timestamp ) -> Result<Timestamp, Error>
fn fd_advise<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
offset: Filesize,
len: Filesize,
advice: Advice
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn fd_readdir<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
buf: &'life1 GuestPtr<'a, u8>,
buf_len: Size,
cookie: Dircookie
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn path_create_directory<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn path_remove_directory<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn path_symlink<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
src_path: &'life1 GuestPtr<'a, str>,
dirfd: Fd,
dest_path: &'life2 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn path_unlink_file<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn poll_oneoff<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
subs: &'life1 GuestPtr<'a, Subscription>,
events: &'life2 GuestPtr<'a, Event>,
nsubscriptions: Size
) -> Pin<Box<dyn Future<Output = Result<Size, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn proc_exit(&mut self, status: Exitcode) -> Error
fn proc_raise(&mut self, _sig: Signal) -> Result<(), Error>
fn sched_yield(&mut self) -> Result<(), Error>
fn random_get<'a>( &mut self, buf: &GuestPtr<'a, u8>, buf_len: Size ) -> Result<(), Error>
fn sock_accept(&mut self, fd: Fd, flags: Fdflags) -> Result<Fd, Error>
fn sock_recv<'a>( &mut self, fd: Fd, ri_data: &IovecArray<'a>, ri_flags: Riflags ) -> Result<(Size, Roflags), Error>
fn sock_send<'a>( &mut self, fd: Fd, si_data: &CiovecArray<'a>, _si_flags: Siflags ) -> Result<Size, Error>
fn sock_shutdown(&mut self, fd: Fd, how: Sdflags) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for WasiP1Ctx
impl !RefUnwindSafe for WasiP1Ctx
impl Send for WasiP1Ctx
impl !Sync for WasiP1Ctx
impl Unpin for WasiP1Ctx
impl !UnwindSafe for WasiP1Ctx
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
source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
self
file descriptor.source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
self
file descriptor. Read moresource§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
source§fn resolution(&mut self) -> Result<u64, Error>
fn resolution(&mut self) -> Result<u64, Error>
source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
fn convert_stream_error( &mut self, err: StreamError ) -> Result<StreamError, Error>
source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
source§fn resolve_addresses(
&mut self,
network: Resource<Network>,
name: String
) -> Result<Resource<ResolveAddressStream>, TrappableError<ErrorCode>>
fn resolve_addresses( &mut self, network: Resource<Network>, name: String ) -> Result<Resource<ResolveAddressStream>, TrappableError<ErrorCode>>
source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
source§fn create_udp_socket(
&mut self,
address_family: IpAddressFamily
) -> Result<Resource<UdpSocket>, TrappableError<ErrorCode>>
fn create_udp_socket( &mut self, address_family: IpAddressFamily ) -> Result<Resource<UdpSocket>, TrappableError<ErrorCode>>
source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
fn convert_error_code( &mut self, error: TrappableError<ErrorCode> ) -> Result<ErrorCode, Error>
source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
fn get_stdout(&mut self) -> Result<Resource<Box<dyn HostOutputStream>>, Error>
source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
source§fn get_directories(
&mut self
) -> Result<Vec<(Resource<Descriptor>, String)>, Error>
fn get_directories( &mut self ) -> Result<Vec<(Resource<Descriptor>, String)>, Error>
source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
source§fn get_terminal_stdout(
&mut self
) -> Result<Option<Resource<TerminalOutput>>, Error>
fn get_terminal_stdout( &mut self ) -> Result<Option<Resource<TerminalOutput>>, Error>
terminal-output
handle
allowing further interaction with it.source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
source§fn get_terminal_stdin(
&mut self
) -> Result<Option<Resource<TerminalInput>>, Error>
fn get_terminal_stdin( &mut self ) -> Result<Option<Resource<TerminalInput>>, Error>
terminal-input
handle
allowing further interaction with it.source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
source§fn create_tcp_socket(
&mut self,
address_family: IpAddressFamily
) -> Result<Resource<TcpSocket>, TrappableError<ErrorCode>>
fn create_tcp_socket( &mut self, address_family: IpAddressFamily ) -> Result<Resource<TcpSocket>, TrappableError<ErrorCode>>
source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
fn get_stderr(&mut self) -> Result<Resource<Box<dyn HostOutputStream>>, Error>
source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
source§fn get_terminal_stderr(
&mut self
) -> Result<Option<Resource<TerminalOutput>>, Error>
fn get_terminal_stderr( &mut self ) -> Result<Option<Resource<TerminalOutput>>, Error>
terminal-output
handle
allowing further interaction with it.source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
fn convert_stream_error( &mut self, err: StreamError ) -> Result<StreamError, Error>
source§impl<T> HostDescriptor for Twhere
T: WasiView,
impl<T> HostDescriptor for Twhere
T: WasiView,
source§fn advise<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
offset: u64,
len: u64,
advice: Advice
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn advise<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
offset: u64,
len: u64,
advice: Advice
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn sync_data<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn sync_data<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn get_flags<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<DescriptorFlags, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn get_flags<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<DescriptorFlags, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn get_type<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<DescriptorType, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn get_type<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<DescriptorType, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn set_size<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
size: u64
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn set_size<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
size: u64
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn set_times<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
atim: NewTimestamp,
mtim: NewTimestamp
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn set_times<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
atim: NewTimestamp,
mtim: NewTimestamp
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn read<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
len: u64,
offset: u64
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, bool), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn read<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
len: u64,
offset: u64
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, bool), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn write<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
buf: Vec<u8>,
offset: u64
) -> Pin<Box<dyn Future<Output = Result<u64, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn write<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
buf: Vec<u8>,
offset: u64
) -> Pin<Box<dyn Future<Output = Result<u64, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn read_directory<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<Resource<ReaddirIterator>, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn read_directory<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<Resource<ReaddirIterator>, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn sync<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn sync<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn create_directory_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path: String
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn create_directory_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path: String
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn stat<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<DescriptorStat, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn stat<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<DescriptorStat, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn stat_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path_flags: PathFlags,
path: String
) -> Pin<Box<dyn Future<Output = Result<DescriptorStat, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn stat_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path_flags: PathFlags,
path: String
) -> Pin<Box<dyn Future<Output = Result<DescriptorStat, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn set_times_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path_flags: PathFlags,
path: String,
atim: NewTimestamp,
mtim: NewTimestamp
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn set_times_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path_flags: PathFlags,
path: String,
atim: NewTimestamp,
mtim: NewTimestamp
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn link_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
old_path_flags: PathFlags,
old_path: String,
new_descriptor: Resource<Descriptor>,
new_path: String
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn link_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
old_path_flags: PathFlags,
old_path: String,
new_descriptor: Resource<Descriptor>,
new_path: String
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn open_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path_flags: PathFlags,
path: String,
oflags: OpenFlags,
flags: DescriptorFlags
) -> Pin<Box<dyn Future<Output = Result<Resource<Descriptor>, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn open_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path_flags: PathFlags,
path: String,
oflags: OpenFlags,
flags: DescriptorFlags
) -> Pin<Box<dyn Future<Output = Result<Resource<Descriptor>, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn drop(&mut self, fd: Resource<Descriptor>) -> Result<(), Error>
source§fn readlink_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path: String
) -> Pin<Box<dyn Future<Output = Result<String, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn readlink_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path: String
) -> Pin<Box<dyn Future<Output = Result<String, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn remove_directory_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path: String
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn remove_directory_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path: String
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn rename_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
old_path: String,
new_fd: Resource<Descriptor>,
new_path: String
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn rename_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
old_path: String,
new_fd: Resource<Descriptor>,
new_path: String
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn symlink_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
src_path: String,
dest_path: String
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn symlink_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
src_path: String,
dest_path: String
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn unlink_file_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path: String
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn unlink_file_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path: String
) -> Pin<Box<dyn Future<Output = Result<(), TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn read_via_stream(
&mut self,
fd: Resource<Descriptor>,
offset: u64
) -> Result<Resource<InputStream>, TrappableError<ErrorCode>>
fn read_via_stream( &mut self, fd: Resource<Descriptor>, offset: u64 ) -> Result<Resource<InputStream>, TrappableError<ErrorCode>>
source§fn write_via_stream(
&mut self,
fd: Resource<Descriptor>,
offset: u64
) -> Result<Resource<Box<dyn HostOutputStream>>, TrappableError<ErrorCode>>
fn write_via_stream( &mut self, fd: Resource<Descriptor>, offset: u64 ) -> Result<Resource<Box<dyn HostOutputStream>>, TrappableError<ErrorCode>>
source§fn append_via_stream(
&mut self,
fd: Resource<Descriptor>
) -> Result<Resource<Box<dyn HostOutputStream>>, TrappableError<ErrorCode>>
fn append_via_stream( &mut self, fd: Resource<Descriptor> ) -> Result<Resource<Box<dyn HostOutputStream>>, TrappableError<ErrorCode>>
source§fn is_same_object<'life0, 'async_trait>(
&'life0 mut self,
a: Resource<Descriptor>,
b: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn is_same_object<'life0, 'async_trait>(
&'life0 mut self,
a: Resource<Descriptor>,
b: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn metadata_hash<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<MetadataHashValue, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn metadata_hash<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>
) -> Pin<Box<dyn Future<Output = Result<MetadataHashValue, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn metadata_hash_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path_flags: PathFlags,
path: String
) -> Pin<Box<dyn Future<Output = Result<MetadataHashValue, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn metadata_hash_at<'life0, 'async_trait>(
&'life0 mut self,
fd: Resource<Descriptor>,
path_flags: PathFlags,
path: String
) -> Pin<Box<dyn Future<Output = Result<MetadataHashValue, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§impl<T> HostDescriptor for Twhere
T: HostDescriptor,
impl<T> HostDescriptor for Twhere
T: HostDescriptor,
source§fn advise(
&mut self,
fd: Resource<Descriptor>,
offset: u64,
len: u64,
advice: Advice
) -> Result<(), TrappableError<ErrorCode>>
fn advise( &mut self, fd: Resource<Descriptor>, offset: u64, len: u64, advice: Advice ) -> Result<(), TrappableError<ErrorCode>>
source§fn sync_data(
&mut self,
fd: Resource<Descriptor>
) -> Result<(), TrappableError<ErrorCode>>
fn sync_data( &mut self, fd: Resource<Descriptor> ) -> Result<(), TrappableError<ErrorCode>>
source§fn get_flags(
&mut self,
fd: Resource<Descriptor>
) -> Result<DescriptorFlags, TrappableError<ErrorCode>>
fn get_flags( &mut self, fd: Resource<Descriptor> ) -> Result<DescriptorFlags, TrappableError<ErrorCode>>
source§fn get_type(
&mut self,
fd: Resource<Descriptor>
) -> Result<DescriptorType, TrappableError<ErrorCode>>
fn get_type( &mut self, fd: Resource<Descriptor> ) -> Result<DescriptorType, TrappableError<ErrorCode>>
source§fn set_size(
&mut self,
fd: Resource<Descriptor>,
size: u64
) -> Result<(), TrappableError<ErrorCode>>
fn set_size( &mut self, fd: Resource<Descriptor>, size: u64 ) -> Result<(), TrappableError<ErrorCode>>
source§fn set_times(
&mut self,
fd: Resource<Descriptor>,
atim: NewTimestamp,
mtim: NewTimestamp
) -> Result<(), TrappableError<ErrorCode>>
fn set_times( &mut self, fd: Resource<Descriptor>, atim: NewTimestamp, mtim: NewTimestamp ) -> Result<(), TrappableError<ErrorCode>>
source§fn read(
&mut self,
fd: Resource<Descriptor>,
len: u64,
offset: u64
) -> Result<(Vec<u8>, bool), TrappableError<ErrorCode>>
fn read( &mut self, fd: Resource<Descriptor>, len: u64, offset: u64 ) -> Result<(Vec<u8>, bool), TrappableError<ErrorCode>>
source§fn write(
&mut self,
fd: Resource<Descriptor>,
buf: Vec<u8>,
offset: u64
) -> Result<u64, TrappableError<ErrorCode>>
fn write( &mut self, fd: Resource<Descriptor>, buf: Vec<u8>, offset: u64 ) -> Result<u64, TrappableError<ErrorCode>>
source§fn read_directory(
&mut self,
fd: Resource<Descriptor>
) -> Result<Resource<ReaddirIterator>, TrappableError<ErrorCode>>
fn read_directory( &mut self, fd: Resource<Descriptor> ) -> Result<Resource<ReaddirIterator>, TrappableError<ErrorCode>>
source§fn sync(
&mut self,
fd: Resource<Descriptor>
) -> Result<(), TrappableError<ErrorCode>>
fn sync( &mut self, fd: Resource<Descriptor> ) -> Result<(), TrappableError<ErrorCode>>
source§fn create_directory_at(
&mut self,
fd: Resource<Descriptor>,
path: String
) -> Result<(), TrappableError<ErrorCode>>
fn create_directory_at( &mut self, fd: Resource<Descriptor>, path: String ) -> Result<(), TrappableError<ErrorCode>>
source§fn stat(
&mut self,
fd: Resource<Descriptor>
) -> Result<DescriptorStat, TrappableError<ErrorCode>>
fn stat( &mut self, fd: Resource<Descriptor> ) -> Result<DescriptorStat, TrappableError<ErrorCode>>
source§fn stat_at(
&mut self,
fd: Resource<Descriptor>,
path_flags: PathFlags,
path: String
) -> Result<DescriptorStat, TrappableError<ErrorCode>>
fn stat_at( &mut self, fd: Resource<Descriptor>, path_flags: PathFlags, path: String ) -> Result<DescriptorStat, TrappableError<ErrorCode>>
source§fn set_times_at(
&mut self,
fd: Resource<Descriptor>,
path_flags: PathFlags,
path: String,
atim: NewTimestamp,
mtim: NewTimestamp
) -> Result<(), TrappableError<ErrorCode>>
fn set_times_at( &mut self, fd: Resource<Descriptor>, path_flags: PathFlags, path: String, atim: NewTimestamp, mtim: NewTimestamp ) -> Result<(), TrappableError<ErrorCode>>
source§fn link_at(
&mut self,
fd: Resource<Descriptor>,
old_path_flags: PathFlags,
old_path: String,
new_descriptor: Resource<Descriptor>,
new_path: String
) -> Result<(), TrappableError<ErrorCode>>
fn link_at( &mut self, fd: Resource<Descriptor>, old_path_flags: PathFlags, old_path: String, new_descriptor: Resource<Descriptor>, new_path: String ) -> Result<(), TrappableError<ErrorCode>>
source§fn open_at(
&mut self,
fd: Resource<Descriptor>,
path_flags: PathFlags,
path: String,
oflags: OpenFlags,
flags: DescriptorFlags
) -> Result<Resource<Descriptor>, TrappableError<ErrorCode>>
fn open_at( &mut self, fd: Resource<Descriptor>, path_flags: PathFlags, path: String, oflags: OpenFlags, flags: DescriptorFlags ) -> Result<Resource<Descriptor>, TrappableError<ErrorCode>>
fn drop(&mut self, fd: Resource<Descriptor>) -> Result<(), Error>
source§fn readlink_at(
&mut self,
fd: Resource<Descriptor>,
path: String
) -> Result<String, TrappableError<ErrorCode>>
fn readlink_at( &mut self, fd: Resource<Descriptor>, path: String ) -> Result<String, TrappableError<ErrorCode>>
source§fn remove_directory_at(
&mut self,
fd: Resource<Descriptor>,
path: String
) -> Result<(), TrappableError<ErrorCode>>
fn remove_directory_at( &mut self, fd: Resource<Descriptor>, path: String ) -> Result<(), TrappableError<ErrorCode>>
source§fn rename_at(
&mut self,
fd: Resource<Descriptor>,
old_path: String,
new_fd: Resource<Descriptor>,
new_path: String
) -> Result<(), TrappableError<ErrorCode>>
fn rename_at( &mut self, fd: Resource<Descriptor>, old_path: String, new_fd: Resource<Descriptor>, new_path: String ) -> Result<(), TrappableError<ErrorCode>>
source§fn symlink_at(
&mut self,
fd: Resource<Descriptor>,
src_path: String,
dest_path: String
) -> Result<(), TrappableError<ErrorCode>>
fn symlink_at( &mut self, fd: Resource<Descriptor>, src_path: String, dest_path: String ) -> Result<(), TrappableError<ErrorCode>>
source§fn unlink_file_at(
&mut self,
fd: Resource<Descriptor>,
path: String
) -> Result<(), TrappableError<ErrorCode>>
fn unlink_file_at( &mut self, fd: Resource<Descriptor>, path: String ) -> Result<(), TrappableError<ErrorCode>>
source§fn read_via_stream(
&mut self,
fd: Resource<Descriptor>,
offset: u64
) -> Result<Resource<InputStream>, TrappableError<ErrorCode>>
fn read_via_stream( &mut self, fd: Resource<Descriptor>, offset: u64 ) -> Result<Resource<InputStream>, TrappableError<ErrorCode>>
source§fn write_via_stream(
&mut self,
fd: Resource<Descriptor>,
offset: u64
) -> Result<Resource<Box<dyn HostOutputStream>>, TrappableError<ErrorCode>>
fn write_via_stream( &mut self, fd: Resource<Descriptor>, offset: u64 ) -> Result<Resource<Box<dyn HostOutputStream>>, TrappableError<ErrorCode>>
source§fn append_via_stream(
&mut self,
fd: Resource<Descriptor>
) -> Result<Resource<Box<dyn HostOutputStream>>, TrappableError<ErrorCode>>
fn append_via_stream( &mut self, fd: Resource<Descriptor> ) -> Result<Resource<Box<dyn HostOutputStream>>, TrappableError<ErrorCode>>
source§fn is_same_object(
&mut self,
a: Resource<Descriptor>,
b: Resource<Descriptor>
) -> Result<bool, Error>
fn is_same_object( &mut self, a: Resource<Descriptor>, b: Resource<Descriptor> ) -> Result<bool, Error>
source§fn metadata_hash(
&mut self,
fd: Resource<Descriptor>
) -> Result<MetadataHashValue, TrappableError<ErrorCode>>
fn metadata_hash( &mut self, fd: Resource<Descriptor> ) -> Result<MetadataHashValue, TrappableError<ErrorCode>>
source§fn metadata_hash_at(
&mut self,
fd: Resource<Descriptor>,
path_flags: PathFlags,
path: String
) -> Result<MetadataHashValue, TrappableError<ErrorCode>>
fn metadata_hash_at( &mut self, fd: Resource<Descriptor>, path_flags: PathFlags, path: String ) -> Result<MetadataHashValue, TrappableError<ErrorCode>>
source§impl<T> HostDirectoryEntryStream for Twhere
T: HostDirectoryEntryStream,
impl<T> HostDirectoryEntryStream for Twhere
T: HostDirectoryEntryStream,
source§fn read_directory_entry(
&mut self,
stream: Resource<ReaddirIterator>
) -> Result<Option<DirectoryEntry>, TrappableError<ErrorCode>>
fn read_directory_entry( &mut self, stream: Resource<ReaddirIterator> ) -> Result<Option<DirectoryEntry>, TrappableError<ErrorCode>>
directory-entry-stream
.fn drop(&mut self, stream: Resource<ReaddirIterator>) -> Result<(), Error>
source§impl<T> HostDirectoryEntryStream for Twhere
T: WasiView,
impl<T> HostDirectoryEntryStream for Twhere
T: WasiView,
source§fn read_directory_entry<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<ReaddirIterator>
) -> Pin<Box<dyn Future<Output = Result<Option<DirectoryEntry>, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn read_directory_entry<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<ReaddirIterator>
) -> Pin<Box<dyn Future<Output = Result<Option<DirectoryEntry>, TrappableError<ErrorCode>>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
directory-entry-stream
.fn drop(&mut self, stream: Resource<ReaddirIterator>) -> Result<(), Error>
source§impl<T> HostIncomingDatagramStream for Twhere
T: WasiView,
impl<T> HostIncomingDatagramStream for Twhere
T: WasiView,
source§fn receive(
&mut self,
this: Resource<IncomingDatagramStream>,
max_results: u64
) -> Result<Vec<IncomingDatagram>, TrappableError<ErrorCode>>
fn receive( &mut self, this: Resource<IncomingDatagramStream>, max_results: u64 ) -> Result<Vec<IncomingDatagram>, TrappableError<ErrorCode>>
source§fn subscribe(
&mut self,
this: Resource<IncomingDatagramStream>
) -> Result<Resource<Pollable>, Error>
fn subscribe( &mut self, this: Resource<IncomingDatagramStream> ) -> Result<Resource<Pollable>, Error>
pollable
which will resolve once the stream is ready to receive again. Read morefn drop(&mut self, this: Resource<IncomingDatagramStream>) -> Result<(), Error>
source§impl<T> HostInputStream for Twhere
T: WasiView,
impl<T> HostInputStream for Twhere
T: WasiView,
fn drop(&mut self, stream: Resource<InputStream>) -> Result<(), Error>
source§fn read<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<InputStream>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn read<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<InputStream>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn blocking_read<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<InputStream>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn blocking_read<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<InputStream>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
read
.source§fn skip<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<InputStream>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<u64, StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn skip<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<InputStream>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<u64, StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn blocking_skip<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<InputStream>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<u64, StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn blocking_skip<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<InputStream>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<u64, StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
skip
.source§fn subscribe(
&mut self,
stream: Resource<InputStream>
) -> Result<Resource<Pollable>, Error>
fn subscribe( &mut self, stream: Resource<InputStream> ) -> Result<Resource<Pollable>, Error>
pollable
which will resolve once either the specified stream
has bytes available to read or the other end of the stream has been
closed.
The created pollable
is a child resource of the input-stream
.
Implementations may trap if the input-stream
is dropped before
all derived pollable
s created with this function are dropped.source§impl<T> HostInputStream for Twhere
T: WasiView,
impl<T> HostInputStream for Twhere
T: WasiView,
fn drop(&mut self, stream: Resource<InputStream>) -> Result<(), Error>
source§fn read(
&mut self,
stream: Resource<InputStream>,
len: u64
) -> Result<Vec<u8>, StreamError>
fn read( &mut self, stream: Resource<InputStream>, len: u64 ) -> Result<Vec<u8>, StreamError>
source§fn blocking_read(
&mut self,
stream: Resource<InputStream>,
len: u64
) -> Result<Vec<u8>, StreamError>
fn blocking_read( &mut self, stream: Resource<InputStream>, len: u64 ) -> Result<Vec<u8>, StreamError>
read
.source§fn skip(
&mut self,
stream: Resource<InputStream>,
len: u64
) -> Result<u64, StreamError>
fn skip( &mut self, stream: Resource<InputStream>, len: u64 ) -> Result<u64, StreamError>
source§fn blocking_skip(
&mut self,
stream: Resource<InputStream>,
len: u64
) -> Result<u64, StreamError>
fn blocking_skip( &mut self, stream: Resource<InputStream>, len: u64 ) -> Result<u64, StreamError>
skip
.source§fn subscribe(
&mut self,
stream: Resource<InputStream>
) -> Result<Resource<Pollable>, Error>
fn subscribe( &mut self, stream: Resource<InputStream> ) -> Result<Resource<Pollable>, Error>
pollable
which will resolve once either the specified stream
has bytes available to read or the other end of the stream has been
closed.
The created pollable
is a child resource of the input-stream
.
Implementations may trap if the input-stream
is dropped before
all derived pollable
s created with this function are dropped.source§impl<T> HostNetwork for Twhere
T: WasiView,
impl<T> HostNetwork for Twhere
T: WasiView,
source§impl<T> HostOutgoingDatagramStream for Twhere
T: WasiView,
impl<T> HostOutgoingDatagramStream for Twhere
T: WasiView,
source§fn check_send(
&mut self,
this: Resource<OutgoingDatagramStream>
) -> Result<u64, TrappableError<ErrorCode>>
fn check_send( &mut self, this: Resource<OutgoingDatagramStream> ) -> Result<u64, TrappableError<ErrorCode>>
source§fn send(
&mut self,
this: Resource<OutgoingDatagramStream>,
datagrams: Vec<OutgoingDatagram>
) -> Result<u64, TrappableError<ErrorCode>>
fn send( &mut self, this: Resource<OutgoingDatagramStream>, datagrams: Vec<OutgoingDatagram> ) -> Result<u64, TrappableError<ErrorCode>>
source§fn subscribe(
&mut self,
this: Resource<OutgoingDatagramStream>
) -> Result<Resource<Pollable>, Error>
fn subscribe( &mut self, this: Resource<OutgoingDatagramStream> ) -> Result<Resource<Pollable>, Error>
pollable
which will resolve once the stream is ready to send again. Read morefn drop(&mut self, this: Resource<OutgoingDatagramStream>) -> Result<(), Error>
source§impl<T> HostOutputStream for Twhere
T: WasiView,
impl<T> HostOutputStream for Twhere
T: WasiView,
fn drop( &mut self, stream: Resource<Box<dyn HostOutputStream>> ) -> Result<(), Error>
source§fn check_write(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>
) -> Result<u64, StreamError>
fn check_write( &mut self, stream: Resource<Box<dyn HostOutputStream>> ) -> Result<u64, StreamError>
source§fn write(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>,
bytes: Vec<u8>
) -> Result<(), StreamError>
fn write( &mut self, stream: Resource<Box<dyn HostOutputStream>>, bytes: Vec<u8> ) -> Result<(), StreamError>
source§fn blocking_write_and_flush(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>,
bytes: Vec<u8>
) -> Result<(), StreamError>
fn blocking_write_and_flush( &mut self, stream: Resource<Box<dyn HostOutputStream>>, bytes: Vec<u8> ) -> Result<(), StreamError>
source§fn blocking_write_zeroes_and_flush(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>,
len: u64
) -> Result<(), StreamError>
fn blocking_write_zeroes_and_flush( &mut self, stream: Resource<Box<dyn HostOutputStream>>, len: u64 ) -> Result<(), StreamError>
source§fn subscribe(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>
) -> Result<Resource<Pollable>, Error>
fn subscribe( &mut self, stream: Resource<Box<dyn HostOutputStream>> ) -> Result<Resource<Pollable>, Error>
pollable
which will resolve once the output-stream
is ready for more writing, or an error has occured. When this
pollable is ready, check-write
will return ok(n)
with n>0, or an
error. Read moresource§fn write_zeroes(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>,
len: u64
) -> Result<(), StreamError>
fn write_zeroes( &mut self, stream: Resource<Box<dyn HostOutputStream>>, len: u64 ) -> Result<(), StreamError>
source§fn flush(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>
) -> Result<(), StreamError>
fn flush( &mut self, stream: Resource<Box<dyn HostOutputStream>> ) -> Result<(), StreamError>
source§fn blocking_flush(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>
) -> Result<(), StreamError>
fn blocking_flush( &mut self, stream: Resource<Box<dyn HostOutputStream>> ) -> Result<(), StreamError>
source§fn splice(
&mut self,
dst: Resource<Box<dyn HostOutputStream>>,
src: Resource<InputStream>,
len: u64
) -> Result<u64, StreamError>
fn splice( &mut self, dst: Resource<Box<dyn HostOutputStream>>, src: Resource<InputStream>, len: u64 ) -> Result<u64, StreamError>
source§fn blocking_splice(
&mut self,
dst: Resource<Box<dyn HostOutputStream>>,
src: Resource<InputStream>,
len: u64
) -> Result<u64, StreamError>
fn blocking_splice( &mut self, dst: Resource<Box<dyn HostOutputStream>>, src: Resource<InputStream>, len: u64 ) -> Result<u64, StreamError>
source§impl<T> HostOutputStream for Twhere
T: WasiView,
impl<T> HostOutputStream for Twhere
T: WasiView,
fn drop( &mut self, stream: Resource<Box<dyn HostOutputStream>> ) -> Result<(), Error>
source§fn check_write(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>
) -> Result<u64, StreamError>
fn check_write( &mut self, stream: Resource<Box<dyn HostOutputStream>> ) -> Result<u64, StreamError>
source§fn write(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>,
bytes: Vec<u8>
) -> Result<(), StreamError>
fn write( &mut self, stream: Resource<Box<dyn HostOutputStream>>, bytes: Vec<u8> ) -> Result<(), StreamError>
source§fn subscribe(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>
) -> Result<Resource<Pollable>, Error>
fn subscribe( &mut self, stream: Resource<Box<dyn HostOutputStream>> ) -> Result<Resource<Pollable>, Error>
pollable
which will resolve once the output-stream
is ready for more writing, or an error has occured. When this
pollable is ready, check-write
will return ok(n)
with n>0, or an
error. Read moresource§fn blocking_write_and_flush<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<Box<dyn HostOutputStream>>,
bytes: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<(), StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn blocking_write_and_flush<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<Box<dyn HostOutputStream>>,
bytes: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<(), StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn blocking_write_zeroes_and_flush<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<Box<dyn HostOutputStream>>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<(), StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn blocking_write_zeroes_and_flush<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<Box<dyn HostOutputStream>>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<(), StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn write_zeroes(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>,
len: u64
) -> Result<(), StreamError>
fn write_zeroes( &mut self, stream: Resource<Box<dyn HostOutputStream>>, len: u64 ) -> Result<(), StreamError>
source§fn flush(
&mut self,
stream: Resource<Box<dyn HostOutputStream>>
) -> Result<(), StreamError>
fn flush( &mut self, stream: Resource<Box<dyn HostOutputStream>> ) -> Result<(), StreamError>
source§fn blocking_flush<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<Box<dyn HostOutputStream>>
) -> Pin<Box<dyn Future<Output = Result<(), StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn blocking_flush<'life0, 'async_trait>(
&'life0 mut self,
stream: Resource<Box<dyn HostOutputStream>>
) -> Pin<Box<dyn Future<Output = Result<(), StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn splice<'life0, 'async_trait>(
&'life0 mut self,
dest: Resource<Box<dyn HostOutputStream>>,
src: Resource<InputStream>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<u64, StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn splice<'life0, 'async_trait>(
&'life0 mut self,
dest: Resource<Box<dyn HostOutputStream>>,
src: Resource<InputStream>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<u64, StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§fn blocking_splice<'life0, 'async_trait>(
&'life0 mut self,
dest: Resource<Box<dyn HostOutputStream>>,
src: Resource<InputStream>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<u64, StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn blocking_splice<'life0, 'async_trait>(
&'life0 mut self,
dest: Resource<Box<dyn HostOutputStream>>,
src: Resource<InputStream>,
len: u64
) -> Pin<Box<dyn Future<Output = Result<u64, StreamError>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
source§impl<T> HostPollable for Twhere
T: WasiView,
impl<T> HostPollable for Twhere
T: WasiView,
source§fn block<'life0, 'async_trait>(
&'life0 mut self,
pollable: Resource<Pollable>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn block<'life0, 'async_trait>(
&'life0 mut self,
pollable: Resource<Pollable>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
block
returns immediately if the pollable is ready, and otherwise
blocks until ready. Read moresource§fn ready<'life0, 'async_trait>(
&'life0 mut self,
pollable: Resource<Pollable>
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn ready<'life0, 'async_trait>(
&'life0 mut self,
pollable: Resource<Pollable>
) -> Pin<Box<dyn Future<Output = Result<bool, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn drop(&mut self, pollable: Resource<Pollable>) -> Result<(), Error>
source§impl<T> HostPollable for Twhere
T: WasiView,
impl<T> HostPollable for Twhere
T: WasiView,
source§fn ready(&mut self, pollable: Resource<Pollable>) -> Result<bool, Error>
fn ready(&mut self, pollable: Resource<Pollable>) -> Result<bool, Error>
source§fn block(&mut self, pollable: Resource<Pollable>) -> Result<(), Error>
fn block(&mut self, pollable: Resource<Pollable>) -> Result<(), Error>
block
returns immediately if the pollable is ready, and otherwise
blocks until ready. Read morefn drop(&mut self, pollable: Resource<Pollable>) -> Result<(), Error>
source§impl<T> HostResolveAddressStream for Twhere
T: WasiView,
impl<T> HostResolveAddressStream for Twhere
T: WasiView,
source§fn resolve_next_address(
&mut self,
resource: Resource<ResolveAddressStream>
) -> Result<Option<IpAddress>, TrappableError<ErrorCode>>
fn resolve_next_address( &mut self, resource: Resource<ResolveAddressStream> ) -> Result<Option<IpAddress>, TrappableError<ErrorCode>>
source§fn subscribe(
&mut self,
resource: Resource<ResolveAddressStream>
) -> Result<Resource<Pollable>, Error>
fn subscribe( &mut self, resource: Resource<ResolveAddressStream> ) -> Result<Resource<Pollable>, Error>
pollable
which will resolve once the stream is ready for I/O. Read morefn drop( &mut self, resource: Resource<ResolveAddressStream> ) -> Result<(), Error>
source§impl<T> HostTcpSocket for Twhere
T: WasiView,
impl<T> HostTcpSocket for Twhere
T: WasiView,
source§fn start_bind(
&mut self,
this: Resource<TcpSocket>,
network: Resource<Network>,
local_address: IpSocketAddress
) -> Result<(), TrappableError<ErrorCode>>
fn start_bind( &mut self, this: Resource<TcpSocket>, network: Resource<Network>, local_address: IpSocketAddress ) -> Result<(), TrappableError<ErrorCode>>
fn finish_bind( &mut self, this: Resource<TcpSocket> ) -> Result<(), TrappableError<ErrorCode>>
source§fn start_connect(
&mut self,
this: Resource<TcpSocket>,
network: Resource<Network>,
remote_address: IpSocketAddress
) -> Result<(), TrappableError<ErrorCode>>
fn start_connect( &mut self, this: Resource<TcpSocket>, network: Resource<Network>, remote_address: IpSocketAddress ) -> Result<(), TrappableError<ErrorCode>>
fn finish_connect( &mut self, this: Resource<TcpSocket> ) -> Result<(Resource<InputStream>, Resource<Box<dyn HostOutputStream>>), TrappableError<ErrorCode>>
source§fn start_listen(
&mut self,
this: Resource<TcpSocket>
) -> Result<(), TrappableError<ErrorCode>>
fn start_listen( &mut self, this: Resource<TcpSocket> ) -> Result<(), TrappableError<ErrorCode>>
fn finish_listen( &mut self, this: Resource<TcpSocket> ) -> Result<(), TrappableError<ErrorCode>>
source§fn accept(
&mut self,
this: Resource<TcpSocket>
) -> Result<(Resource<TcpSocket>, Resource<InputStream>, Resource<Box<dyn HostOutputStream>>), TrappableError<ErrorCode>>
fn accept( &mut self, this: Resource<TcpSocket> ) -> Result<(Resource<TcpSocket>, Resource<InputStream>, Resource<Box<dyn HostOutputStream>>), TrappableError<ErrorCode>>
source§fn local_address(
&mut self,
this: Resource<TcpSocket>
) -> Result<IpSocketAddress, TrappableError<ErrorCode>>
fn local_address( &mut self, this: Resource<TcpSocket> ) -> Result<IpSocketAddress, TrappableError<ErrorCode>>
source§fn remote_address(
&mut self,
this: Resource<TcpSocket>
) -> Result<IpSocketAddress, TrappableError<ErrorCode>>
fn remote_address( &mut self, this: Resource<TcpSocket> ) -> Result<IpSocketAddress, TrappableError<ErrorCode>>
source§fn is_listening(&mut self, this: Resource<TcpSocket>) -> Result<bool, Error>
fn is_listening(&mut self, this: Resource<TcpSocket>) -> Result<bool, Error>
listening
state. Read moresource§fn address_family(
&mut self,
this: Resource<TcpSocket>
) -> Result<IpAddressFamily, Error>
fn address_family( &mut self, this: Resource<TcpSocket> ) -> Result<IpAddressFamily, Error>
source§fn set_listen_backlog_size(
&mut self,
this: Resource<TcpSocket>,
value: u64
) -> Result<(), TrappableError<ErrorCode>>
fn set_listen_backlog_size( &mut self, this: Resource<TcpSocket>, value: u64 ) -> Result<(), TrappableError<ErrorCode>>
source§fn keep_alive_enabled(
&mut self,
this: Resource<TcpSocket>
) -> Result<bool, TrappableError<ErrorCode>>
fn keep_alive_enabled( &mut self, this: Resource<TcpSocket> ) -> Result<bool, TrappableError<ErrorCode>>
fn set_keep_alive_enabled( &mut self, this: Resource<TcpSocket>, value: bool ) -> Result<(), TrappableError<ErrorCode>>
source§fn keep_alive_idle_time(
&mut self,
this: Resource<TcpSocket>
) -> Result<u64, TrappableError<ErrorCode>>
fn keep_alive_idle_time( &mut self, this: Resource<TcpSocket> ) -> Result<u64, TrappableError<ErrorCode>>
fn set_keep_alive_idle_time( &mut self, this: Resource<TcpSocket>, value: u64 ) -> Result<(), TrappableError<ErrorCode>>
source§fn keep_alive_interval(
&mut self,
this: Resource<TcpSocket>
) -> Result<u64, TrappableError<ErrorCode>>
fn keep_alive_interval( &mut self, this: Resource<TcpSocket> ) -> Result<u64, TrappableError<ErrorCode>>
fn set_keep_alive_interval( &mut self, this: Resource<TcpSocket>, value: u64 ) -> Result<(), TrappableError<ErrorCode>>
source§fn keep_alive_count(
&mut self,
this: Resource<TcpSocket>
) -> Result<u32, TrappableError<ErrorCode>>
fn keep_alive_count( &mut self, this: Resource<TcpSocket> ) -> Result<u32, TrappableError<ErrorCode>>
fn set_keep_alive_count( &mut self, this: Resource<TcpSocket>, value: u32 ) -> Result<(), TrappableError<ErrorCode>>
source§fn hop_limit(
&mut self,
this: Resource<TcpSocket>
) -> Result<u8, TrappableError<ErrorCode>>
fn hop_limit( &mut self, this: Resource<TcpSocket> ) -> Result<u8, TrappableError<ErrorCode>>
fn set_hop_limit( &mut self, this: Resource<TcpSocket>, value: u8 ) -> Result<(), TrappableError<ErrorCode>>
source§fn receive_buffer_size(
&mut self,
this: Resource<TcpSocket>
) -> Result<u64, TrappableError<ErrorCode>>
fn receive_buffer_size( &mut self, this: Resource<TcpSocket> ) -> Result<u64, TrappableError<ErrorCode>>
fn set_receive_buffer_size( &mut self, this: Resource<TcpSocket>, value: u64 ) -> Result<(), TrappableError<ErrorCode>>
fn send_buffer_size( &mut self, this: Resource<TcpSocket> ) -> Result<u64, TrappableError<ErrorCode>>
fn set_send_buffer_size( &mut self, this: Resource<TcpSocket>, value: u64 ) -> Result<(), TrappableError<ErrorCode>>
source§fn subscribe(
&mut self,
this: Resource<TcpSocket>
) -> Result<Resource<Pollable>, Error>
fn subscribe( &mut self, this: Resource<TcpSocket> ) -> Result<Resource<Pollable>, Error>
pollable
which can be used to poll for, or block on,
completion of any of the asynchronous operations of this socket. Read moresource§fn shutdown(
&mut self,
this: Resource<TcpSocket>,
shutdown_type: ShutdownType
) -> Result<(), TrappableError<ErrorCode>>
fn shutdown( &mut self, this: Resource<TcpSocket>, shutdown_type: ShutdownType ) -> Result<(), TrappableError<ErrorCode>>
fn drop(&mut self, this: Resource<TcpSocket>) -> Result<(), Error>
source§impl<T> HostTerminalInput for Twhere
T: WasiView,
impl<T> HostTerminalInput for Twhere
T: WasiView,
source§impl<T> HostTerminalOutput for Twhere
T: WasiView,
impl<T> HostTerminalOutput for Twhere
T: WasiView,
source§impl<T> HostUdpSocket for Twhere
T: WasiView,
impl<T> HostUdpSocket for Twhere
T: WasiView,
source§fn start_bind(
&mut self,
this: Resource<UdpSocket>,
network: Resource<Network>,
local_address: IpSocketAddress
) -> Result<(), TrappableError<ErrorCode>>
fn start_bind( &mut self, this: Resource<UdpSocket>, network: Resource<Network>, local_address: IpSocketAddress ) -> Result<(), TrappableError<ErrorCode>>
fn finish_bind( &mut self, this: Resource<UdpSocket> ) -> Result<(), TrappableError<ErrorCode>>
source§fn stream(
&mut self,
this: Resource<UdpSocket>,
remote_address: Option<IpSocketAddress>
) -> Result<(Resource<IncomingDatagramStream>, Resource<OutgoingDatagramStream>), TrappableError<ErrorCode>>
fn stream( &mut self, this: Resource<UdpSocket>, remote_address: Option<IpSocketAddress> ) -> Result<(Resource<IncomingDatagramStream>, Resource<OutgoingDatagramStream>), TrappableError<ErrorCode>>
source§fn local_address(
&mut self,
this: Resource<UdpSocket>
) -> Result<IpSocketAddress, TrappableError<ErrorCode>>
fn local_address( &mut self, this: Resource<UdpSocket> ) -> Result<IpSocketAddress, TrappableError<ErrorCode>>
source§fn remote_address(
&mut self,
this: Resource<UdpSocket>
) -> Result<IpSocketAddress, TrappableError<ErrorCode>>
fn remote_address( &mut self, this: Resource<UdpSocket> ) -> Result<IpSocketAddress, TrappableError<ErrorCode>>
source§fn address_family(
&mut self,
this: Resource<UdpSocket>
) -> Result<IpAddressFamily, Error>
fn address_family( &mut self, this: Resource<UdpSocket> ) -> Result<IpAddressFamily, Error>
source§fn unicast_hop_limit(
&mut self,
this: Resource<UdpSocket>
) -> Result<u8, TrappableError<ErrorCode>>
fn unicast_hop_limit( &mut self, this: Resource<UdpSocket> ) -> Result<u8, TrappableError<ErrorCode>>
fn set_unicast_hop_limit( &mut self, this: Resource<UdpSocket>, value: u8 ) -> Result<(), TrappableError<ErrorCode>>
source§fn receive_buffer_size(
&mut self,
this: Resource<UdpSocket>
) -> Result<u64, TrappableError<ErrorCode>>
fn receive_buffer_size( &mut self, this: Resource<UdpSocket> ) -> Result<u64, TrappableError<ErrorCode>>
fn set_receive_buffer_size( &mut self, this: Resource<UdpSocket>, value: u64 ) -> Result<(), TrappableError<ErrorCode>>
fn send_buffer_size( &mut self, this: Resource<UdpSocket> ) -> Result<u64, TrappableError<ErrorCode>>
fn set_send_buffer_size( &mut self, this: Resource<UdpSocket>, value: u64 ) -> Result<(), TrappableError<ErrorCode>>
source§fn subscribe(
&mut self,
this: Resource<UdpSocket>
) -> Result<Resource<Pollable>, Error>
fn subscribe( &mut self, this: Resource<UdpSocket> ) -> Result<Resource<Pollable>, Error>
pollable
which will resolve once the socket is ready for I/O. Read morefn drop(&mut self, this: Resource<UdpSocket>) -> Result<(), Error>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WasiUnstable for Twhere
T: WasiSnapshotPreview1 + Send,
impl<T> WasiUnstable for Twhere
T: WasiSnapshotPreview1 + Send,
source§fn args_get<'a>(
&mut self,
argv: &GuestPtr<'a, GuestPtr<'a, u8>>,
argv_buf: &GuestPtr<'a, u8>
) -> Result<(), Error>
fn args_get<'a>( &mut self, argv: &GuestPtr<'a, GuestPtr<'a, u8>>, argv_buf: &GuestPtr<'a, u8> ) -> Result<(), Error>
preview1
only.source§fn args_sizes_get(&mut self) -> Result<(u32, u32), Error>
fn args_sizes_get(&mut self) -> Result<(u32, u32), Error>
preview1
only.source§fn environ_get<'a>(
&mut self,
environ: &GuestPtr<'a, GuestPtr<'a, u8>>,
environ_buf: &GuestPtr<'a, u8>
) -> Result<(), Error>
fn environ_get<'a>( &mut self, environ: &GuestPtr<'a, GuestPtr<'a, u8>>, environ_buf: &GuestPtr<'a, u8> ) -> Result<(), Error>
preview1
only.source§fn environ_sizes_get(&mut self) -> Result<(u32, u32), Error>
fn environ_sizes_get(&mut self) -> Result<(u32, u32), Error>
preview1
only.source§fn clock_res_get(&mut self, id: Clockid) -> Result<u64, Error>
fn clock_res_get(&mut self, id: Clockid) -> Result<u64, Error>
preview1
only.source§fn clock_time_get(&mut self, id: Clockid, precision: u64) -> Result<u64, Error>
fn clock_time_get(&mut self, id: Clockid, precision: u64) -> Result<u64, Error>
preview1
only.source§fn fd_advise<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
offset: u64,
len: u64,
advice: Advice
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn fd_advise<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
offset: u64,
len: u64,
advice: Advice
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_allocate(&mut self, fd: Fd, offset: u64, len: u64) -> Result<(), Error>
fn fd_allocate(&mut self, fd: Fd, offset: u64, len: u64) -> Result<(), Error>
preview1
only.source§fn fd_close<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn fd_close<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_datasync<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn fd_datasync<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_fdstat_get<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Fdstat, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn fd_fdstat_get<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Fdstat, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_fdstat_set_flags(&mut self, fd: Fd, flags: Fdflags) -> Result<(), Error>
fn fd_fdstat_set_flags(&mut self, fd: Fd, flags: Fdflags) -> Result<(), Error>
preview1
only.source§fn fd_fdstat_set_rights(
&mut self,
fd: Fd,
fs_rights_base: Rights,
fs_rights_inheriting: Rights
) -> Result<(), Error>
fn fd_fdstat_set_rights( &mut self, fd: Fd, fs_rights_base: Rights, fs_rights_inheriting: Rights ) -> Result<(), Error>
preview1
only.source§fn fd_filestat_get<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn fd_filestat_get<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_filestat_set_size<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
size: u64
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn fd_filestat_set_size<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
size: u64
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_filestat_set_times<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
atim: u64,
mtim: u64,
fst_flags: Fstflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn fd_filestat_set_times<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
atim: u64,
mtim: u64,
fst_flags: Fstflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_read<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
iovs: &'life1 GuestPtr<'a, [Iovec<'a>]>
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn fd_read<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
iovs: &'life1 GuestPtr<'a, [Iovec<'a>]>
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_pread<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
iovs: &'life1 GuestPtr<'a, [Iovec<'a>]>,
offset: u64
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn fd_pread<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
iovs: &'life1 GuestPtr<'a, [Iovec<'a>]>,
offset: u64
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_write<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
ciovs: &'life1 GuestPtr<'a, [Ciovec<'a>]>
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn fd_write<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
ciovs: &'life1 GuestPtr<'a, [Ciovec<'a>]>
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_pwrite<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
ciovs: &'life1 GuestPtr<'a, [Ciovec<'a>]>,
offset: u64
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn fd_pwrite<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
ciovs: &'life1 GuestPtr<'a, [Ciovec<'a>]>,
offset: u64
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_prestat_get(&mut self, fd: Fd) -> Result<Prestat, Error>
fn fd_prestat_get(&mut self, fd: Fd) -> Result<Prestat, Error>
preview1
only.source§fn fd_prestat_dir_name(
&mut self,
fd: Fd,
path: &GuestPtr<'_, u8>,
path_max_len: u32
) -> Result<(), Error>
fn fd_prestat_dir_name( &mut self, fd: Fd, path: &GuestPtr<'_, u8>, path_max_len: u32 ) -> Result<(), Error>
preview1
only.source§fn fd_renumber(&mut self, from: Fd, to: Fd) -> Result<(), Error>
fn fd_renumber(&mut self, from: Fd, to: Fd) -> Result<(), Error>
preview1
only.source§fn fd_seek<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
offset: i64,
whence: Whence
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn fd_seek<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd,
offset: i64,
whence: Whence
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_sync<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn fd_sync<'life0, 'async_trait>(
&'life0 mut self,
fd: Fd
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
preview1
only.source§fn fd_readdir<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
buf: &'life1 GuestPtr<'a, u8>,
buf_len: u32,
cookie: u64
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn fd_readdir<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
fd: Fd,
buf: &'life1 GuestPtr<'a, u8>,
buf_len: u32,
cookie: u64
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
preview1
only.source§fn path_create_directory<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn path_create_directory<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
preview1
only.source§fn path_filestat_get<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
flags: Lookupflags,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn path_filestat_get<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
flags: Lookupflags,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<Filestat, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
preview1
only.source§fn path_filestat_set_times<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
flags: Lookupflags,
path: &'life1 GuestPtr<'a, str>,
atim: u64,
mtim: u64,
fst_flags: Fstflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn path_filestat_set_times<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
flags: Lookupflags,
path: &'life1 GuestPtr<'a, str>,
atim: u64,
mtim: u64,
fst_flags: Fstflags
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
preview1
only.source§fn path_link<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
src_fd: Fd,
src_flags: Lookupflags,
src_path: &'life1 GuestPtr<'a, str>,
target_fd: Fd,
target_path: &'life2 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
fn path_link<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
src_fd: Fd,
src_flags: Lookupflags,
src_path: &'life1 GuestPtr<'a, str>,
target_fd: Fd,
target_path: &'life2 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
preview1
only.source§fn path_open<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut 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>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn path_open<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut 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>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
preview1
only.source§fn path_readlink<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>,
buf: &'life2 GuestPtr<'a, u8>,
buf_len: u32
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
fn path_readlink<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>,
buf: &'life2 GuestPtr<'a, u8>,
buf_len: u32
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
preview1
only.source§fn path_remove_directory<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn path_remove_directory<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
preview1
only.source§fn path_rename<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut 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>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
fn path_rename<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut 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>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
preview1
only.source§fn path_symlink<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
src_path: &'life1 GuestPtr<'a, str>,
dirfd: Fd,
dest_path: &'life2 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
fn path_symlink<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
src_path: &'life1 GuestPtr<'a, str>,
dirfd: Fd,
dest_path: &'life2 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
preview1
only.source§fn path_unlink_file<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
fn path_unlink_file<'a, 'life0, 'life1, 'async_trait>(
&'life0 mut self,
dirfd: Fd,
path: &'life1 GuestPtr<'a, str>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
T: 'async_trait,
preview1
only.source§fn poll_oneoff<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
subs: &'life1 GuestPtr<'a, Subscription>,
events: &'life2 GuestPtr<'a, Event>,
nsubscriptions: u32
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
fn poll_oneoff<'a, 'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
subs: &'life1 GuestPtr<'a, Subscription>,
events: &'life2 GuestPtr<'a, Event>,
nsubscriptions: u32
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'a: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
T: 'async_trait,
preview1
only.source§fn proc_raise(&mut self, sig: Signal) -> Result<(), Error>
fn proc_raise(&mut self, sig: Signal) -> Result<(), Error>
preview1
only.source§fn random_get(
&mut self,
buf: &GuestPtr<'_, u8>,
buf_len: u32
) -> Result<(), Error>
fn random_get( &mut self, buf: &GuestPtr<'_, u8>, buf_len: u32 ) -> Result<(), Error>
preview1
only.source§fn sock_recv(
&mut self,
_fd: Fd,
_ri_data: &GuestPtr<'_, [Iovec<'_>]>,
_ri_flags: Riflags
) -> Result<(u32, Roflags), Error>
fn sock_recv( &mut self, _fd: Fd, _ri_data: &GuestPtr<'_, [Iovec<'_>]>, _ri_flags: Riflags ) -> Result<(u32, Roflags), Error>
preview1
only.