pub enum Inode<D: WasiVirtualDir, F: WasiVirtualFile> {
Dir(D),
File(F),
}
Variants§
Trait Implementations§
Source§impl<D: WasiVirtualDir, F: WasiVirtualFile> WasiNode for Inode<D, F>
impl<D: WasiVirtualDir, F: WasiVirtualFile> WasiNode for Inode<D, F>
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<D, F> Freeze for Inode<D, F>
impl<D, F> RefUnwindSafe for Inode<D, F>where
D: RefUnwindSafe,
F: RefUnwindSafe,
impl<D, F> Send for Inode<D, F>
impl<D, F> Sync for Inode<D, F>
impl<D, F> Unpin for Inode<D, F>
impl<D, F> UnwindSafe for Inode<D, F>where
D: UnwindSafe,
F: UnwindSafe,
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