pub struct DeferDirRemoval<'a> { /* private fields */ }Expand description
DeferDirRemoval runs recursive directory removal when the object goes out of the scope. Errors during removal are ignored.
Example: let _d = DeferDirRemoval::new(“/tmp/foo-bar-baz”);
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for DeferDirRemoval<'a>
impl<'a> RefUnwindSafe for DeferDirRemoval<'a>
impl<'a> Send for DeferDirRemoval<'a>
impl<'a> Sync for DeferDirRemoval<'a>
impl<'a> Unpin for DeferDirRemoval<'a>
impl<'a> UnwindSafe for DeferDirRemoval<'a>
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