pub struct Directory { /* private fields */ }Implementations§
Source§impl Directory
impl Directory
pub fn open(path: &Path) -> Result<Directory, Error>
pub fn child(&self, child: &OsStr) -> Result<Directory, Error>
pub fn descend(&self, path: &Path) -> Result<Directory, Error>
pub fn try_clone(&self) -> Result<Directory, Error>
pub fn identity(&self) -> Result<Vec<u8>, Error>
pub fn open_file(&self, child: &OsStr) -> Result<File, Error>
pub fn create_file(&self, child: &OsStr) -> Result<File, Error>
pub fn hard_link( &self, source: &OsStr, destination: &OsStr, ) -> Result<(), Error>
Sourcepub fn durable_rename(
&self,
source: &OsStr,
destination: &OsStr,
) -> Result<(), Error>
pub fn durable_rename( &self, source: &OsStr, destination: &OsStr, ) -> Result<(), Error>
Source data must be flushed first. Persist both directory entries before return, independently of reconstructible-clone durability suppression.
pub fn remove_file(&self, child: &OsStr) -> Result<(), Error>
Auto Trait Implementations§
impl Freeze for Directory
impl RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin for Directory
impl UnsafeUnpin for Directory
impl UnwindSafe for Directory
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