|
1 | 1 | //! Delay mock implementations, implementing both sync and async |
2 | | -//! [`BlockingDelay`](https://docs.rs/embedded-hal/latest/embedded_hal/delay/trait.BlockingDelay.html) |
| 2 | +//! [`DelayNs`](https://docs.rs/embedded-hal/1/embedded_hal/delay/trait.DelayNs.html) |
3 | 3 | //! traits. |
4 | 4 | //! |
5 | 5 | //! ## Choosing a Delay Implementation |
6 | 6 | //! |
7 | 7 | //! There are three implementations available depending on your use case: |
8 | 8 | //! |
9 | | -//! - If you want **no actual delay**, create a |
10 | | -//! [`NoopDelay`](struct.NoopDelay.html) stub. It will always return |
11 | | -//! immediately, without a delay. This is useful for fast tests, where you |
12 | | -//! don't actually need to wait for the hardware. |
| 9 | +//! - If you want **no actual delay**, create a [`NoopDelay`] stub. |
| 10 | +//! It will always return immediately, without a delay. |
| 11 | +//! This is useful for fast tests, where you don't actually need to wait for |
| 12 | +//! the hardware. |
13 | 13 | //! - If you do want the **real delay behavior** when running your tests, use |
14 | | -//! [`StdSleep`](struct.StdSleep.html) stub implementation, which uses |
15 | | -//! [`std::thread::sleep`](https://doc.rust-lang.org/std/thread/fn.sleep.html) |
16 | | -//! to implement the delay. |
| 14 | +//! [`StdSleep`] stub implementation, which uses [`std::thread::sleep`] to |
| 15 | +//! implement the delay. |
17 | 16 | //! - For a **configurable delay** implementation that supports expectations, |
18 | | -//! use the [`CheckedDelay`](type.CheckedDelay.html) mock. By default it |
19 | | -//! doesn't perform an actual delay, but allows the user to enable them |
20 | | -//! individually for each expected call. |
| 17 | +//! use the [`CheckedDelay`] mock. By default it doesn't perform an actual |
| 18 | +//! delay, but allows the user to enable them individually for each expected |
| 19 | +//! call. |
21 | 20 | //! |
22 | 21 | //! ## Usage |
23 | 22 | //! |
|
0 commit comments