diff options
| author | Dario Nieuwenhuis <[email protected]> | 2022-05-03 01:08:34 +0200 |
|---|---|---|
| committer | Dario Nieuwenhuis <[email protected]> | 2022-05-03 01:08:34 +0200 |
| commit | a4656151963e4d7c2fb05c13174c6077a4d6e189 (patch) | |
| tree | 0900e46683fcb201fe4b489ace2838188e645edd | |
| parent | 71e46d7efdcf903a1493f02ef03d1376fc6bc6df (diff) | |
embassy/time: derives for TimeoutError.
| -rw-r--r-- | embassy/src/time/timer.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/embassy/src/time/timer.rs b/embassy/src/time/timer.rs index aacaadfc5..1b3832f37 100644 --- a/embassy/src/time/timer.rs +++ b/embassy/src/time/timer.rs | |||
| @@ -7,6 +7,8 @@ use crate::executor::raw; | |||
| 7 | use crate::time::{Duration, Instant}; | 7 | use crate::time::{Duration, Instant}; |
| 8 | 8 | ||
| 9 | /// Error returned by [`with_timeout`] on timeout. | 9 | /// Error returned by [`with_timeout`] on timeout. |
| 10 | #[derive(Debug, Clone, PartialEq, Eq)] | ||
| 11 | #[cfg_attr(feature = "defmt", derive(defmt::Format))] | ||
| 10 | pub struct TimeoutError; | 12 | pub struct TimeoutError; |
| 11 | 13 | ||
| 12 | /// Runs a given future with a timeout. | 14 | /// Runs a given future with a timeout. |
