pub struct UnlinkOnDrop { /* private fields */ }Expand description
Drop-guard that unlinks a path on drop unless disarm is called.
Used to ensure that any failure between temp-file open and final rename leaves the filesystem clean.
Implementations§
Trait Implementations§
Source§impl Debug for UnlinkOnDrop
impl Debug for UnlinkOnDrop
Source§impl Drop for UnlinkOnDrop
impl Drop for UnlinkOnDrop
Auto Trait Implementations§
impl Freeze for UnlinkOnDrop
impl RefUnwindSafe for UnlinkOnDrop
impl Send for UnlinkOnDrop
impl Sync for UnlinkOnDrop
impl Unpin for UnlinkOnDrop
impl UnsafeUnpin for UnlinkOnDrop
impl UnwindSafe for UnlinkOnDrop
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