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(
16    clippy::module_inception,
17    reason = "the file name follows the public Timer type"
18)]
19mod timer;
20mod timer_future;
21
22#[cfg(feature = "tokio")]
23mod tokio_timer;
24
25pub use manual_timer::ManualTimer;
26pub use std_timer::StdTimer;
27pub use timer::Timer;
28pub use timer_future::TimerFuture;
29
30#[cfg(feature = "tokio")]
31pub use tokio_timer::TokioTimer;
32
33#[doc(hidden)]
34#[cfg(all(coverage, feature = "tokio"))]
35pub use tokio_timer::panic_next_tokio_timer_sleep_poll;