pub struct TmpDir { /* private fields */ }
Expand description
RIIA temporary working directory.
Creating an instance of this represents a directory and dropping it represents removing it.
Platform considerations
Some platforms protect directories from removal while a process is using
the directory. Make sure the process is not using the directory when the
Drop
handler is run.
Implementations
sourceimpl TmpDir
impl TmpDir
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TmpDir
impl Send for TmpDir
impl Sync for TmpDir
impl Unpin for TmpDir
impl UnwindSafe for TmpDir
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more