Skip to main content

Crate qubit_lock

Crate qubit_lock 

Source
Expand description

§Qubit Lock

Lock utilities for the Qubit Rust libraries.

The crate provides:

  • Synchronous lock wrappers with Arc integrated internally.
  • Asynchronous Tokio-based lock wrappers.
  • Monitor-style coordination built on Mutex plus Condvar.

Re-exports§

pub use lock::ArcAsyncMutex;
pub use lock::ArcAsyncRwLock;
pub use lock::ArcMonitor;
pub use lock::ArcMutex;
pub use lock::ArcRwLock;
pub use lock::ArcStdMutex;
pub use lock::AsyncLock;
pub use lock::Lock;
pub use lock::Monitor;
pub use lock::MonitorGuard;
pub use lock::TryLockError;
pub use lock::WaitTimeoutResult;
pub use lock::WaitTimeoutStatus;

Modules§

lock
Lock Module
monitor
Monitor 模块