pub struct Scratch { /* private fields */ }Expand description
A directory of this run’s own, removed when dropped.
Implementations§
Source§impl Scratch
impl Scratch
Sourcepub fn new(parent: &Path, command: &str) -> Result<Scratch, (PathBuf, Error)>
pub fn new(parent: &Path, command: &str) -> Result<Scratch, (PathBuf, Error)>
Makes parent/cuno-<command>-<process id>-<n>, the first n whose
name is not taken. A name that exists, whoever made it, is passed
over: a killed run leaves its directory behind and its process id is
reused. parent is not created: a missing parent is the caller’s
problem to report. The error names the directory that could not be
made.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Scratch
impl Freeze for Scratch
impl Move for Scratch
impl RefUnwindSafe for Scratch
impl Send for Scratchwhere
RawVecInner: Send,
impl Sync for Scratchwhere
RawVecInner: Sync,
impl Unpin for Scratch
impl UnsafeUnpin for Scratch
impl UnwindSafe for Scratchwhere
RawVecInner: UnwindSafe,
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