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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl StoreLockProbe for StoreDir
Available on crate features
test-utils only.