embassy/time: derives for TimeoutError.
This commit is contained in:
parent
71e46d7efd
commit
a465615196
1 changed files with 2 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue