LockfileOperations

Trait LockfileOperations 

Source
pub trait LockfileOperations {
    // Provided methods
    fn load_lockfile_with_context(path: impl AsRef<Path>) -> Result<LockFile> { ... }
    fn save_lockfile_with_context(
        lockfile: &LockFile,
        path: impl AsRef<Path>,
    ) -> Result<()> { ... }
}
Expand description

Common lockfile operations with consistent error handling

Provided Methods§

Source

fn load_lockfile_with_context(path: impl AsRef<Path>) -> Result<LockFile>

Load a lockfile with appropriate error context

Source

fn save_lockfile_with_context( lockfile: &LockFile, path: impl AsRef<Path>, ) -> Result<()>

Save a lockfile with appropriate error context

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§