externally-driven-async-rt 0.5.0

Async runtime that is meant to be embedded
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
/// An error returned from [`Context::reserve_task`](crate::Context::reserve_task) when all `TASKS`
/// task slots are taken and another task already waits for a free one.
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub struct SlotWaiterTakenError;

impl core::fmt::Display for SlotWaiterTakenError {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        f.write_str("another task already waits for a free task slot")
    }
}

impl core::error::Error for SlotWaiterTakenError {}