diff --git a/embassy/src/time/timer.rs b/embassy/src/time/timer.rs index aacaadfc..1b3832f3 100644 --- a/embassy/src/time/timer.rs +++ b/embassy/src/time/timer.rs @@ -7,6 +7,8 @@ use crate::executor::raw; use crate::time::{Duration, Instant}; /// Error returned by [`with_timeout`] on timeout. +#[derive(Debug, Clone, PartialEq, Eq)] +#[cfg_attr(feature = "defmt", derive(defmt::Format))] pub struct TimeoutError; /// Runs a given future with a timeout.