pub struct DbWriteLock { /* private fields */ }Expand description
RAII guard for exclusive projection write lock.
Implementations§
Source§impl DbWriteLock
impl DbWriteLock
Sourcepub fn acquire(path: &Path, timeout: Duration) -> Result<Self, LockError>
pub fn acquire(path: &Path, timeout: Duration) -> Result<Self, LockError>
Acquire an exclusive advisory lock on the projection DB path.
§Errors
Returns LockError::Timeout if the lock cannot be acquired within
the given timeout, or LockError::IoError on I/O failure.
Auto Trait Implementations§
impl Freeze for DbWriteLock
impl RefUnwindSafe for DbWriteLock
impl Send for DbWriteLock
impl Sync for DbWriteLock
impl Unpin for DbWriteLock
impl UnsafeUnpin for DbWriteLock
impl UnwindSafe for DbWriteLock
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