Expand description
§Qubit Lock
Lock utilities for the Qubit Rust libraries.
The crate provides:
- Synchronous lock wrappers with
Arcintegrated internally. - Optional asynchronous Tokio-based lock wrappers behind the
asyncfeature. - Monitor-style coordination built on
parking_lotand standard-libraryMutexplusCondvarpairs.
Public API items are re-exported from the crate root. The internal
lock and monitor modules are implementation details and are not public
import paths.
ⓘ
use qubit_lock::lock::Lock;ⓘ
use qubit_lock::monitor::Monitor;Structs§
- ArcAsync
Mutex - Asynchronous Mutex Wrapper
- ArcAsync
RwLock - Asynchronous Read-Write Lock Wrapper
- ArcMonitor
- Arc-wrapped monitor for shared condition-based state coordination.
- ArcMutex
- Synchronous Mutex Wrapper (Parking Lot)
- ArcRw
Lock - Parking-lot read-write lock wrapper.
- ArcStd
Monitor - Arc-wrapped monitor for shared condition-based state coordination.
- ArcStd
Mutex - Synchronous Standard Mutex Wrapper
- ArcStd
RwLock - Standard-library read-write lock wrapper.
- Monitor
- Shared state protected by a mutex and a condition variable.
- Monitor
Guard - Guard returned by
Monitor::lock. - StdMonitor
- Shared state protected by a mutex and a condition variable.
- StdMonitor
Guard - Guard returned by
StdMonitor::lock.
Enums§
- TryLock
Error - Non-blocking lock acquisition error.
- Wait
Timeout Result - Result of waiting for a predicate with an overall timeout.
- Wait
Timeout Status - Result of a timed wait operation.