pub struct TargetLock { /* private fields */ }Expand description
One target held for the life of this value.
The held file stays open for as long as this value lives, and the operating system releases its lock when the file closes: on a drop, on a refusal, on an error, and on a process that dies without unwinding. The only constructors either take the lock or refuse, so there is no such thing as a lock that holds nothing.
Implementations§
Trait Implementations§
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