//! [`LockBackend`] — the OS primitive used to acquire a lock.
/// Which OS locking primitive is used when acquiring a [`crate::FileLock`].
///
/// | Backend | Unix mechanism | Windows | Network filesystems |
/// |---------|---------------------------------|--------------|---------------------|
/// | `Flock` | `flock(2)` | `LockFileEx` | Local Unix only |
/// | `Fcntl` | OFD locks where available (*) | `LockFileEx` | Preferred backend |
///
/// (*) The Unix `Fcntl` backend uses open-file-description locks on supported
/// targets such as Linux, Android, Apple platforms, and illumos. It returns
/// [`crate::Error::Unsupported`] on Unix targets where only process-scoped
/// POSIX record locks are available, because POSIX locks cannot faithfully
/// model this crate's per-guard RAII semantics.
///
/// On Windows, `LockFileEx` is used for both variants; the distinction exists
/// for cross-platform configuration.