pub struct DbReadLock { /* private fields */ }Expand description
RAII guard for shared projection read lock.
Implementations§
Source§impl DbReadLock
impl DbReadLock
Sourcepub fn acquire(path: &Path, timeout: Duration) -> Result<Self, LockError>
pub fn acquire(path: &Path, timeout: Duration) -> Result<Self, LockError>
Acquire a shared 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 DbReadLock
impl RefUnwindSafe for DbReadLock
impl Send for DbReadLock
impl Sync for DbReadLock
impl Unpin for DbReadLock
impl UnsafeUnpin for DbReadLock
impl UnwindSafe for DbReadLock
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