embassy/time: derives for TimeoutError.
This commit is contained in:
parent
71e46d7efd
commit
a465615196
@ -7,6 +7,8 @@ use crate::executor::raw;
|
|||||||
use crate::time::{Duration, Instant};
|
use crate::time::{Duration, Instant};
|
||||||
|
|
||||||
/// Error returned by [`with_timeout`] on timeout.
|
/// Error returned by [`with_timeout`] on timeout.
|
||||||
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
|
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
|
||||||
pub struct TimeoutError;
|
pub struct TimeoutError;
|
||||||
|
|
||||||
/// Runs a given future with a timeout.
|
/// Runs a given future with a timeout.
|
||||||
|
Loading…
Reference in New Issue
Block a user