pub trait StoreLockProbe {
// Required method
fn lock_exclusive(&self) -> Result<StoreLock, StoreLockError>;
}Expand description
Probes the OS writer lock without waiting, for lifetime assertions in
tests. Production opens take the lock through StoreDirAccess.
Required Methods§
Sourcefn lock_exclusive(&self) -> Result<StoreLock, StoreLockError>
fn lock_exclusive(&self) -> Result<StoreLock, StoreLockError>
Take the writer lock, refusing at once when it is held.
Implementors§
impl StoreLockProbe for StoreDir
Available on crate features
test-utils only.