Struct wasmtime_wasi::sync::dir::Dir [−][src]
Implementations
impl Dir
[src]
pub fn from_cap_std(dir: Dir) -> Dir
[src]
Trait Implementations
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>
Auto Trait Implementations
impl RefUnwindSafe for Dir
impl Send for Dir
impl Sync for Dir
impl Unpin for Dir
impl UnwindSafe for Dir
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointee for T
[src]
type Pointer = u32
pub fn debug(
pointer: <T as Pointee>::Pointer,
f: &mut Formatter<'_>
) -> Result<(), Error>
[src]
pointer: <T as Pointee>::Pointer,
f: &mut Formatter<'_>
) -> Result<(), Error>
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,