qubit_lock/monitor/shared_async_monitor.rs
1/*******************************************************************************
2 *
3 * Copyright (c) 2025 - 2026 Haixing Hu.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 *
7 * Licensed under the Apache License, Version 2.0.
8 *
9 ******************************************************************************/
10//! Cloneable asynchronous monitor capability.
11
12use crate::monitor::AsyncMonitor;
13
14/// Aggregate trait for cloneable, shared asynchronous monitor handles.
15pub trait SharedAsyncMonitor: AsyncMonitor + Clone + Send + Sync + 'static {}
16
17impl<T> SharedAsyncMonitor for T where T: AsyncMonitor + Clone + Send + Sync + 'static {}