qubit-lock 0.9.0

Lock utilities library providing synchronous, asynchronous, and monitor-based locking primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*******************************************************************************
 *
 *    Copyright (c) 2025 - 2026 Haixing Hu.
 *
 *    SPDX-License-Identifier: Apache-2.0
 *
 *    Licensed under the Apache License, Version 2.0.
 *
 ******************************************************************************/
//! Cloneable asynchronous monitor capability.

use crate::monitor::AsyncMonitor;

/// Aggregate trait for cloneable, shared asynchronous monitor handles.
pub trait SharedAsyncMonitor: AsyncMonitor + Clone + Send + Sync + 'static {}

impl<T> SharedAsyncMonitor for T where T: AsyncMonitor + Clone + Send + Sync + 'static {}