pub struct Scratch { /* private fields */ }Expand description
RAII-cleaned scratch directory anchored under the ZLayer data dir’s tmp/.
Drop removes the directory and its contents. Call Self::into_path to
keep the directory on disk past the guard’s lifetime.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scratch
impl RefUnwindSafe for Scratch
impl Send for Scratch
impl Sync for Scratch
impl Unpin for Scratch
impl UnsafeUnpin for Scratch
impl UnwindSafe for Scratch
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