pub struct WriterLock { /* private fields */ }Expand description
RAII guard for a held WRITER_LOCK byte. Dropping the guard
releases the OS-side lock. The guard is !Send only by virtue of
the file handle it does NOT own — the underlying lock is per-fd,
so as long as the fd survives, releasing from any thread is
sound.
Implementations§
Source§impl WriterLock
impl WriterLock
Trait Implementations§
Source§impl Debug for WriterLock
impl Debug for WriterLock
Source§impl Drop for WriterLock
impl Drop for WriterLock
Auto Trait Implementations§
impl Freeze for WriterLock
impl RefUnwindSafe for WriterLock
impl Send for WriterLock
impl Sync for WriterLock
impl Unpin for WriterLock
impl UnsafeUnpin for WriterLock
impl UnwindSafe for WriterLock
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