pub struct StateDirectoryLock { /* private fields */ }Expand description
An exclusive, non-blocking OS lock on a state directory.
The guard owns the open lock file; dropping it closes the descriptor and
releases the kernel lock. It also records the canonical state directory so
ResponderState::load can verify that the guard it retains really protects
the directory the configuration names. Cloning the enclosing Arc (as the
responder and every detached writer task does) keeps the lock held; only
the final drop releases it.
Implementations§
Auto Trait Implementations§
impl Freeze for StateDirectoryLock
impl RefUnwindSafe for StateDirectoryLock
impl Send for StateDirectoryLock
impl Sync for StateDirectoryLock
impl Unpin for StateDirectoryLock
impl UnsafeUnpin for StateDirectoryLock
impl UnwindSafe for StateDirectoryLock
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