Crate dir_lock

Source
Expand description

This is dir-lock, a library crate providing the type DirLock, which is a simple file-system-based mutex.

§Features

The following feature is enabled by default:

  • tokio: Uses the tokio runtime for async operations.

The following features can be enabled via Cargo:

  • async-std: Uses the async-std runtime for async operations. The tokio feature should be disabled when using this feature.

Structs§

DirLock
A simple file-system-based mutex.

Enums§

Error
An error that can occur when locking or unlocking a DirLock.