diff options
| -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. |
