pub struct DiskFile {
pub fd: File,
pub flags: FdFlags,
pub right: WASIRights,
}Fields§
§fd: File§flags: FdFlags§right: WASIRightsTrait Implementations§
Source§impl WasiFile for DiskFile
impl WasiFile for DiskFile
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>
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>
Source§impl WasiNode for DiskFile
impl WasiNode for DiskFile
fn fd_fdstat_get(&self) -> Result<FdStat, 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>
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>
Auto Trait Implementations§
impl Freeze for DiskFile
impl RefUnwindSafe for DiskFile
impl Send for DiskFile
impl Sync for DiskFile
impl Unpin for DiskFile
impl UnsafeUnpin for DiskFile
impl UnwindSafe for DiskFile
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