pub struct TargetLock { /* private fields */ }Expand description
One target held for the life of this value.
The file is removed on drop, on every path out: a refusal, an error, or a clean apply. A process killed outright leaves the file behind, and the refusal it causes names the file so the operator can remove it. A held lock always names its file: the only two constructors either create one or refuse, so there is no such thing as a lock that holds nothing.
Implementations§
Trait Implementations§
Source§impl Debug for TargetLock
impl Debug for TargetLock
Source§impl Drop for TargetLock
impl Drop for TargetLock
Auto Trait Implementations§
impl Freeze for TargetLock
impl RefUnwindSafe for TargetLock
impl Send for TargetLock
impl Sync for TargetLock
impl Unpin for TargetLock
impl UnsafeUnpin for TargetLock
impl UnwindSafe for TargetLock
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