switchyard-fs 1.0.0

Switchyard: safe, atomic, reversible filesystem swaps with policy and audit
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub mod file;
use crate::types::errors::Result;

pub trait LockGuard: Send {}

pub trait LockManager: Send + Sync {
    /// Acquire a process lock with the specified timeout.
    /// # Errors
    /// Returns an error if the lock cannot be acquired within the timeout period.
    fn acquire_process_lock(&self, timeout_ms: u64) -> Result<Box<dyn LockGuard>>;
}