[−][src]Crate simplelock
Structs
LockConfig |
Enums
SimpleLockError |
Traits
Lock |
Functions
default_lock | By default we will return a fake lock, unless one of the implementations is enabled. |
lock_until_finished | Simple utility function for wrapping a closure with a lock. Since we use tempfile() behind the scenes, we can't reference a single file or a path. we instead ask for a directory, and any file in that directory means the lock is locked, otherwise we'll create a file which will either be cleaned up by close or via the OS if all handlers are closed. |
Type Definitions
SimpleLockResult | SimpleLock's Result value override to inject our Error type. |