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