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.

Implementors§

Source§

impl StoreLockProbe for StoreDir

Available on crate features test-utils only.