mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-28 04:40:39 +00:00
Merge pull request #3680 from wackazong/wackazong-patch-1
Impl core::err::Error for SpawnError
This commit is contained in:
commit
f58efe9c62
@ -62,6 +62,16 @@ pub enum SpawnError {
|
||||
Busy,
|
||||
}
|
||||
|
||||
impl core::fmt::Display for SpawnError {
|
||||
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
||||
match self {
|
||||
SpawnError::Busy => write!(f, "Busy"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl core::error::Error for SpawnError {}
|
||||
|
||||
/// Handle to spawn tasks into an executor.
|
||||
///
|
||||
/// This Spawner can spawn any task (Send and non-Send ones), but it can
|
||||
|
Loading…
x
Reference in New Issue
Block a user