pub struct Workspace { /* private fields */ }Implementations§
Source§impl Workspace
impl Workspace
pub fn new(mode: TempMode) -> Result<Self, Box<dyn Error>>
pub fn path(&self) -> &Path
Sourcepub fn on_failure(self)
pub fn on_failure(self)
Call when the operation fails. KeepOnFailure leaks the directory so
it survives process exit; all other modes drop and clean up immediately.
ShmDebug guarantees no orphaned files in /dev/shm.
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnsafeUnpin for Workspace
impl UnwindSafe for Workspace
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