pub struct Context { /* private fields */ }
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Context
impl !RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl !UnwindSafe for Context
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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,
Query the “status” flags for the
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,
Set the “status” flags for the
self
file descriptor. Read moreSource§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 drop_input_stream<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn drop_input_stream<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Dispose of the specified
input-stream
, after which it may no longer
be used.Source§fn drop_output_stream<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn drop_output_stream<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Dispose of the specified
output-stream
, after which it may no longer
be used.Source§fn read<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn read<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Read bytes from a stream. Read more
Source§fn blocking_read<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn blocking_read<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Read bytes from a stream, with blocking. Read more
Source§fn write<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
bytes: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn write<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
bytes: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Write bytes to a stream. Read more
Source§fn blocking_write<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
bytes: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn blocking_write<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
bytes: Vec<u8>,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Write bytes to a stream, with blocking. Read more
Source§fn skip<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<(u64, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn skip<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<(u64, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Skip bytes from a stream. Read more
Source§fn blocking_skip<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<(u64, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn blocking_skip<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<(u64, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Skip bytes from a stream, with blocking. Read more
Source§fn write_zeroes<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn write_zeroes<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Write multiple zero bytes to a stream. Read more
Source§fn blocking_write_zeroes<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn blocking_write_zeroes<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Write multiple zero bytes to a stream, with blocking. Read more
Source§fn splice<'life0, 'async_trait>(
&'life0 mut self,
_src: u32,
_dst: u32,
_len: u64,
) -> Pin<Box<dyn Future<Output = Result<(u64, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn splice<'life0, 'async_trait>(
&'life0 mut self,
_src: u32,
_dst: u32,
_len: u64,
) -> Pin<Box<dyn Future<Output = Result<(u64, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Read from one stream and write to another. Read more
Source§fn blocking_splice<'life0, 'async_trait>(
&'life0 mut self,
src: u32,
dst: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<(u64, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn blocking_splice<'life0, 'async_trait>(
&'life0 mut self,
src: u32,
dst: u32,
len: u64,
) -> Pin<Box<dyn Future<Output = Result<(u64, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Read from one stream and write to another, with blocking. Read more
Source§fn forward<'life0, 'async_trait>(
&'life0 mut self,
_src: u32,
_dst: u32,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn forward<'life0, 'async_trait>(
&'life0 mut self,
_src: u32,
_dst: u32,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Forward the entire contents of an input stream to an output stream. Read more
Source§fn subscribe_to_input_stream<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn subscribe_to_input_stream<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Create a
pollable
which will resolve once either the specified stream
has bytes available to read or the other end of the stream has been
closed.Source§fn subscribe_to_output_stream<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn subscribe_to_output_stream<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Create a
pollable
which will resolve once either the specified stream
is ready to accept bytes or the other end of the stream has been closed.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§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§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
Source§fn now<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn now<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Read the current value of the clock. Read more
Source§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
Source§fn display<'life0, 'async_trait>(
&'life0 mut self,
timezone: u32,
when: Datetime,
) -> Pin<Box<dyn Future<Output = Result<TimezoneDisplay, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn display<'life0, 'async_trait>(
&'life0 mut self,
timezone: u32,
when: Datetime,
) -> Pin<Box<dyn Future<Output = Result<TimezoneDisplay, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Return information needed to display the given
datetime
. This includes
the UTC offset, the time zone name, and a flag indicating whether
daylight saving time is active. Read moreSource§impl<T> Host for Twhere
T: WasiView,
impl<T> Host for Twhere
T: WasiView,
Source§fn advise<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
offset: u64,
len: u64,
advice: Advice,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn advise<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
offset: u64,
len: u64,
advice: Advice,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Provide file advisory information on a descriptor. Read more
Source§fn sync_data<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn sync_data<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Synchronize the data of a file to disk. Read more
Source§fn get_flags<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<DescriptorFlags, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn get_flags<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<DescriptorFlags, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Get flags associated with a descriptor. Read more
Source§fn get_type<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<DescriptorType, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn get_type<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<DescriptorType, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Get the dynamic type of a descriptor. Read more
Source§fn set_size<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
size: u64,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn set_size<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
size: u64,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Adjust the size of an open file. If this increases the file’s size, the
extra bytes are filled with zeros. Read more
Source§fn set_times<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
atim: NewTimestamp,
mtim: NewTimestamp,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn set_times<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
atim: NewTimestamp,
mtim: NewTimestamp,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Adjust the timestamps of an open file or directory. Read more
Source§fn read<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
len: u64,
offset: u64,
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn read<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
len: u64,
offset: u64,
) -> Pin<Box<dyn Future<Output = Result<(Vec<u8>, bool), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Read from a descriptor, without using and updating the descriptor’s offset. Read more
Source§fn write<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
buf: Vec<u8>,
offset: u64,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn write<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
buf: Vec<u8>,
offset: u64,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Write to a descriptor, without using and updating the descriptor’s offset. Read more
Source§fn read_directory<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn read_directory<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Read directory entries from a directory. Read more
Source§fn read_directory_entry<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
) -> Pin<Box<dyn Future<Output = Result<Option<DirectoryEntry>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn read_directory_entry<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
) -> Pin<Box<dyn Future<Output = Result<Option<DirectoryEntry>, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Read a single directory entry from a
directory-entry-stream
.Source§fn drop_directory_entry_stream<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn drop_directory_entry_stream<'life0, 'async_trait>(
&'life0 mut self,
stream: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Dispose of the specified
directory-entry-stream
, after which it may no longer
be used.Source§fn sync<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn sync<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Synchronize the data and metadata of a file to disk. Read more
Source§fn create_directory_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn create_directory_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Create a directory. Read more
Source§fn stat<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<DescriptorStat, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn stat<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<DescriptorStat, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Return the attributes of an open file or directory. Read more
Source§fn stat_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path_flags: PathFlags,
path: String,
) -> Pin<Box<dyn Future<Output = Result<DescriptorStat, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn stat_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path_flags: PathFlags,
path: String,
) -> Pin<Box<dyn Future<Output = Result<DescriptorStat, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Return the attributes of a file or directory. Read more
Source§fn set_times_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path_flags: PathFlags,
path: String,
atim: NewTimestamp,
mtim: NewTimestamp,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn set_times_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path_flags: PathFlags,
path: String,
atim: NewTimestamp,
mtim: NewTimestamp,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Adjust the timestamps of a file or directory. Read more
Source§fn link_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
old_path_flags: PathFlags,
old_path: String,
new_descriptor: u32,
new_path: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn link_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
old_path_flags: PathFlags,
old_path: String,
new_descriptor: u32,
new_path: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Create a hard link. Read more
Source§fn open_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path_flags: PathFlags,
path: String,
oflags: OpenFlags,
flags: DescriptorFlags,
_mode: Modes,
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn open_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path_flags: PathFlags,
path: String,
oflags: OpenFlags,
flags: DescriptorFlags,
_mode: Modes,
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Open a file or directory. Read more
Source§fn drop_descriptor<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn drop_descriptor<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Dispose of the specified
descriptor
, after which it may no longer
be used.Source§fn readlink_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path: String,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn readlink_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path: String,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Read the contents of a symbolic link. Read more
Source§fn remove_directory_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn remove_directory_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Remove a directory. Read more
Source§fn rename_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
old_path: String,
new_fd: u32,
new_path: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn rename_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
old_path: String,
new_fd: u32,
new_path: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Rename a filesystem object. Read more
Source§fn symlink_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
src_path: String,
dest_path: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn symlink_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
src_path: String,
dest_path: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Create a symbolic link (also known as a “symlink”). Read more
Source§fn unlink_file_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn unlink_file_at<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
path: String,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Unlink a filesystem object that is not a directory. Read more
Source§fn access_at<'life0, 'async_trait>(
&'life0 mut self,
_fd: u32,
_path_flags: PathFlags,
_path: String,
_access: AccessType,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn access_at<'life0, 'async_trait>(
&'life0 mut self,
_fd: u32,
_path_flags: PathFlags,
_path: String,
_access: AccessType,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Check accessibility of a filesystem path. Read more
Source§fn change_file_permissions_at<'life0, 'async_trait>(
&'life0 mut self,
_fd: u32,
_path_flags: PathFlags,
_path: String,
_mode: Modes,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn change_file_permissions_at<'life0, 'async_trait>(
&'life0 mut self,
_fd: u32,
_path_flags: PathFlags,
_path: String,
_mode: Modes,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Change the permissions of a filesystem object that is not a directory. Read more
Source§fn change_directory_permissions_at<'life0, 'async_trait>(
&'life0 mut self,
_fd: u32,
_path_flags: PathFlags,
_path: String,
_mode: Modes,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn change_directory_permissions_at<'life0, 'async_trait>(
&'life0 mut self,
_fd: u32,
_path_flags: PathFlags,
_path: String,
_mode: Modes,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Change the permissions of a directory. Read more
Request a shared advisory lock for an open file. Read more
Source§fn lock_exclusive<'life0, 'async_trait>(
&'life0 mut self,
_fd: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn lock_exclusive<'life0, 'async_trait>(
&'life0 mut self,
_fd: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Request an exclusive advisory lock for an open file. Read more
Request a shared advisory lock for an open file. Read more
Source§fn try_lock_exclusive<'life0, 'async_trait>(
&'life0 mut self,
_fd: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn try_lock_exclusive<'life0, 'async_trait>(
&'life0 mut self,
_fd: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Request an exclusive advisory lock for an open file. Read more
Source§fn unlock<'life0, 'async_trait>(
&'life0 mut self,
_fd: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn unlock<'life0, 'async_trait>(
&'life0 mut self,
_fd: u32,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Release a shared or exclusive lock on an open file. Read more
Source§fn read_via_stream<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
offset: u64,
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
fn read_via_stream<'life0, 'async_trait>(
&'life0 mut self,
fd: u32,
offset: u64,
) -> Pin<Box<dyn Future<Output = Result<u32, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
T: 'async_trait,
Return a stream for reading from a file. Read more
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more