pub struct Directory { /* private fields */ }Implementations§
Source§impl Directory
impl Directory
pub fn open(path: &Path) -> Result<Self>
pub fn check(&self) -> Result<()>
pub fn dir(&self) -> Result<&Dir>
pub fn subdir(&self, path: &Path) -> Result<Dir>
pub fn ensure_dir(&self, path: &Path) -> Result<()>
pub fn read(&self, path: &Path, maximum: u64, secret: bool) -> Result<Vec<u8>>
pub fn write( &self, path: &Path, bytes: &[u8], create: bool, preserve_mode: bool, ) -> Result<()>
pub fn remove(&self, path: &Path) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Forget for Directory
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