pub struct StoreLock { /* private fields */ }Expand description
An acquired exclusive writer lock. Released on drop.
Implementations§
Source§impl StoreLock
impl StoreLock
Sourcepub fn acquire(
store_dir: &Path,
operation: &str,
opts: LockOptions,
) -> Result<Self>
pub fn acquire( store_dir: &Path, operation: &str, opts: LockOptions, ) -> Result<Self>
Acquire the exclusive writer lock, blocking with bounded exponential
backoff up to opts.timeout.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StoreLock
impl !UnwindSafe for StoreLock
impl Forget for StoreLock
impl Freeze for StoreLock
impl Move for StoreLock
impl Send for StoreLock
impl Sync for StoreLock
impl Unpin for StoreLock
impl UnsafeUnpin for StoreLock
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