Trait wasmtime_wasi::WasiDir [−][src]
Required methods
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn open_file(
&self,
symlink_follow: bool,
path: &str,
oflags: OFlags,
read: bool,
write: bool,
fdflags: FdFlags
) -> Result<Box<dyn WasiFile + 'static, Global>, Error>
[src]
&self,
symlink_follow: bool,
path: &str,
oflags: OFlags,
read: bool,
write: bool,
fdflags: FdFlags
) -> Result<Box<dyn WasiFile + 'static, Global>, Error>
pub fn open_dir(
&self,
symlink_follow: bool,
path: &str
) -> Result<Box<dyn WasiDir + 'static, Global>, Error>
[src]
&self,
symlink_follow: bool,
path: &str
) -> Result<Box<dyn WasiDir + 'static, Global>, Error>
pub fn create_dir(&self, path: &str) -> Result<(), Error>
[src]
pub fn readdir(
&self,
cursor: ReaddirCursor
) -> Result<Box<dyn Iterator<Item = Result<ReaddirEntity, Error>> + 'static, Global>, Error>
[src]
&self,
cursor: ReaddirCursor
) -> Result<Box<dyn Iterator<Item = Result<ReaddirEntity, Error>> + 'static, Global>, Error>
pub fn symlink(&self, old_path: &str, new_path: &str) -> Result<(), Error>
[src]
pub fn remove_dir(&self, path: &str) -> Result<(), Error>
[src]
pub fn unlink_file(&self, path: &str) -> Result<(), Error>
[src]
pub fn read_link(&self, path: &str) -> Result<PathBuf, Error>
[src]
pub fn get_filestat(&self) -> Result<Filestat, Error>
[src]
pub fn get_path_filestat(
&self,
path: &str,
follow_symlinks: bool
) -> Result<Filestat, Error>
[src]
&self,
path: &str,
follow_symlinks: bool
) -> Result<Filestat, Error>
pub fn rename(
&self,
path: &str,
dest_dir: &dyn WasiDir,
dest_path: &str
) -> Result<(), Error>
[src]
&self,
path: &str,
dest_dir: &dyn WasiDir,
dest_path: &str
) -> Result<(), Error>
pub fn hard_link(
&self,
path: &str,
target_dir: &dyn WasiDir,
target_path: &str
) -> Result<(), Error>
[src]
&self,
path: &str,
target_dir: &dyn WasiDir,
target_path: &str
) -> Result<(), Error>
pub fn set_times(
&self,
path: &str,
atime: Option<SystemTimeSpec>,
mtime: Option<SystemTimeSpec>,
follow_symlinks: bool
) -> Result<(), Error>
[src]
&self,
path: &str,
atime: Option<SystemTimeSpec>,
mtime: Option<SystemTimeSpec>,
follow_symlinks: bool
) -> Result<(), Error>
Implementors
impl WasiDir for Dir
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn open_file(
&self,
symlink_follow: bool,
path: &str,
oflags: OFlags,
read: bool,
write: bool,
fdflags: FdFlags
) -> Result<Box<dyn WasiFile + 'static, Global>, Error>
[src]
&self,
symlink_follow: bool,
path: &str,
oflags: OFlags,
read: bool,
write: bool,
fdflags: FdFlags
) -> Result<Box<dyn WasiFile + 'static, Global>, Error>
pub fn open_dir(
&self,
symlink_follow: bool,
path: &str
) -> Result<Box<dyn WasiDir + 'static, Global>, Error>
[src]
&self,
symlink_follow: bool,
path: &str
) -> Result<Box<dyn WasiDir + 'static, Global>, Error>
pub fn create_dir(&self, path: &str) -> Result<(), Error>
[src]
pub fn readdir(
&self,
cursor: ReaddirCursor
) -> Result<Box<dyn Iterator<Item = Result<ReaddirEntity, Error>> + 'static, Global>, Error>
[src]
&self,
cursor: ReaddirCursor
) -> Result<Box<dyn Iterator<Item = Result<ReaddirEntity, Error>> + 'static, Global>, Error>
pub fn symlink(&self, src_path: &str, dest_path: &str) -> Result<(), Error>
[src]
pub fn remove_dir(&self, path: &str) -> Result<(), Error>
[src]
pub fn unlink_file(&self, path: &str) -> Result<(), Error>
[src]
pub fn read_link(&self, path: &str) -> Result<PathBuf, Error>
[src]
pub fn get_filestat(&self) -> Result<Filestat, Error>
[src]
pub fn get_path_filestat(
&self,
path: &str,
follow_symlinks: bool
) -> Result<Filestat, Error>
[src]
&self,
path: &str,
follow_symlinks: bool
) -> Result<Filestat, Error>
pub fn rename(
&self,
src_path: &str,
dest_dir: &dyn WasiDir,
dest_path: &str
) -> Result<(), Error>
[src]
&self,
src_path: &str,
dest_dir: &dyn WasiDir,
dest_path: &str
) -> Result<(), Error>
pub fn hard_link(
&self,
src_path: &str,
target_dir: &dyn WasiDir,
target_path: &str
) -> Result<(), Error>
[src]
&self,
src_path: &str,
target_dir: &dyn WasiDir,
target_path: &str
) -> Result<(), Error>
pub fn set_times(
&self,
path: &str,
atime: Option<SystemTimeSpec>,
mtime: Option<SystemTimeSpec>,
follow_symlinks: bool
) -> Result<(), Error>
[src]
&self,
path: &str,
atime: Option<SystemTimeSpec>,
mtime: Option<SystemTimeSpec>,
follow_symlinks: bool
) -> Result<(), Error>