Skip to main content

StoreLockProbe

Trait StoreLockProbe 

Source
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§

Source

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§

Source§

impl StoreLockProbe for StoreDir

Available on crate features test-utils only.