pub struct Directory { /* private fields */ }
Implementations§
Source§impl Directory
impl Directory
pub fn from_namespace( path: impl AsRef<Path>, flags: Flags, ) -> Result<Directory, Status>
pub async fn open_directory( &self, filename: &str, flags: Flags, ) -> Result<Directory, Status>
pub async fn open_file( &self, filename: &str, flags: Flags, ) -> Result<File, Status>
pub async fn create_directory( &self, filename: &str, flags: Flags, ) -> Result<Directory, Status>
pub async fn sync_directory(&self) -> Result<(), Status>
pub async fn remove(&self, filename: &str) -> Result<(), Status>
pub async fn rename( &self, src_name: &str, dst_parent: &Directory, dst_name: &str, ) -> Result<(), Status>
pub async fn entries(&self) -> Result<Vec<String>, Status>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Directory
impl !RefUnwindSafe for Directory
impl Send for Directory
impl Sync for Directory
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)