Skip to main content

qubit_clock/timer/
mod.rs

1// =============================================================================
2//    Copyright (c) 2025 - 2026 Haixing Hu.
3//
4//    SPDX-License-Identifier: Apache-2.0
5//
6//    Licensed under the Apache License, Version 2.0.
7// =============================================================================
8//! Timer capabilities for asynchronous deadline notification.
9
10// qubit-style: allow coverage-cfg
11
12pub(crate) mod internal;
13mod manual_timer;
14mod std_timer;
15#[allow(clippy::module_inception, reason = "the file name follows the public Timer type")]
16mod timer;
17mod timer_future;
18
19#[cfg(feature = "tokio")]
20mod tokio_timer;
21
22pub use manual_timer::ManualTimer;
23pub use std_timer::StdTimer;
24pub use timer::Timer;
25pub use timer_future::TimerFuture;
26#[cfg(feature = "tokio")]
27pub use tokio_timer::TokioTimer;
28#[doc(hidden)]
29#[cfg(all(coverage, feature = "tokio"))]
30pub use tokio_timer::panic_next_tokio_timer_sleep_poll;