async_wasi::snapshots::common::vfs

Trait WasiNode

Source
pub trait WasiNode {
    // Required methods
    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>;

    // Provided methods
    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> { ... }
}

Required Methods§

Provided Methods§

Source

fn fd_fdstat_set_flags(&mut self, flags: FdFlags) -> Result<(), Errno>

Source

fn fd_fdstat_set_rights( &mut self, fs_rights_base: WASIRights, fs_rights_inheriting: WASIRights, ) -> Result<(), Errno>

Implementors§