pub struct ScratchRegistry { /* private fields */ }Expand description
Owns the temp paths minted during one interpreter run and removes them on drop.
Holds PathBufs rather than open handles deliberately: the Lisp side needs
a path string it can pass to subprocesses, and a script legitimately
creates, removes, and recreates files underneath a scratch dir. Ownership
here is of the path’s lifetime, not of a file descriptor.
Implementations§
Trait Implementations§
Source§impl Debug for ScratchRegistry
impl Debug for ScratchRegistry
Source§impl Default for ScratchRegistry
impl Default for ScratchRegistry
Source§fn default() -> ScratchRegistry
fn default() -> ScratchRegistry
Returns the “default value” for a type. Read more
Source§impl Drop for ScratchRegistry
impl Drop for ScratchRegistry
Auto Trait Implementations§
impl Freeze for ScratchRegistry
impl RefUnwindSafe for ScratchRegistry
impl Send for ScratchRegistry
impl Sync for ScratchRegistry
impl Unpin for ScratchRegistry
impl UnsafeUnpin for ScratchRegistry
impl UnwindSafe for ScratchRegistry
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