mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-10-02 22:54:52 +00:00
Impl core::err::Error for SpawnError
This commit is contained in:
parent
bb8ad9148a
commit
4c7e1b05a0
@ -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