pub struct MemoryFile { /* private fields */ }
Trait Implementations§
Source§impl Debug for MemoryFile
impl Debug for MemoryFile
Source§impl Drop for MemoryFile
impl Drop for MemoryFile
Source§impl WasiFile for MemoryFile
impl WasiFile for MemoryFile
fn fd_read(&mut self, bufs: &mut [IoSliceMut<'_>]) -> Result<usize, Errno>
fn fd_pread( &mut self, bufs: &mut [IoSliceMut<'_>], offset: __wasi_filesize_t, ) -> Result<usize, Errno>
fn fd_write(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Errno>
fn fd_pwrite( &mut self, bufs: &[IoSlice<'_>], offset: __wasi_filesize_t, ) -> Result<usize, Errno>
fn fd_seek( &mut self, offset: __wasi_filedelta_t, whence: Type, ) -> Result<__wasi_filesize_t, Errno>
fn fd_tell(&mut self) -> Result<__wasi_filesize_t, Errno>
fn fd_advise( &mut self, offset: __wasi_filesize_t, len: __wasi_filesize_t, advice: Advice, ) -> Result<(), Errno>
fn fd_allocate( &mut self, offset: __wasi_filesize_t, len: __wasi_filesize_t, ) -> Result<(), Errno>
fn fd_datasync(&mut self) -> Result<(), Errno>
fn fd_sync(&mut self) -> Result<(), Errno>
Source§impl WasiNode for MemoryFile
impl WasiNode for MemoryFile
fn fd_fdstat_get(&self) -> Result<FdStat, Errno>
fn fd_filestat_get(&self) -> Result<Filestat, Errno>
fn fd_filestat_set_size(&mut self, size: __wasi_filesize_t) -> Result<(), Errno>
fn fd_filestat_set_times( &mut self, atim: __wasi_timestamp_t, mtim: __wasi_timestamp_t, fst_flags: Type, ) -> Result<(), Errno>
fn fd_fdstat_set_flags(&mut self, flags: FdFlags) -> Result<(), Errno>
fn fd_fdstat_set_rights( &mut self, fs_rights_base: WASIRights, fs_rights_inheriting: WASIRights, ) -> Result<(), Errno>
Source§impl WasiVirtualFile for MemoryFile
impl WasiVirtualFile for MemoryFile
Auto Trait Implementations§
impl Freeze for MemoryFile
impl RefUnwindSafe for MemoryFile
impl Send for MemoryFile
impl Sync for MemoryFile
impl Unpin for MemoryFile
impl UnwindSafe for MemoryFile
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