pub struct TempDir(/* private fields */);Expand description
A unique temporary directory, removed on drop.
Unique without a temp-dir crate: process id + a process-wide monotonic
counter, so parallel tests within a run never collide. The name is kept
deliberately short — jj’s op_store paths are deep, and a long prefix here
can tip a nested .jj/repo/op_store/operations/<id> path over Windows’
MAX_PATH (260) limit.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TempDir
impl RefUnwindSafe for TempDir
impl Send for TempDir
impl Sync for TempDir
impl Unpin for TempDir
impl UnsafeUnpin for TempDir
impl UnwindSafe for TempDir
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