Skip to main content

qubit_lock/monitor/
async_monitor_future.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//! Boxed future type used by asynchronous monitor traits.
11
12use std::{
13    future::Future,
14    pin::Pin,
15};
16
17/// Sendable boxed future returned by asynchronous monitor operations.
18pub type AsyncMonitorFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;