externally_driven_async_rt/
not_enough_resources.rs1#[derive(Debug, Clone, Copy, PartialEq, Eq)]
3pub enum NotEnoughResources {
4 Tasks,
6 Timers,
8 FDs,
10}
11
12impl core::fmt::Display for NotEnoughResources {
13 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
14 match self {
15 Self::Tasks => f.write_str("all task slots are taken"),
16 Self::Timers => f.write_str("all timer slots are taken"),
17 Self::FDs => f.write_str("all fd slots are taken"),
18 }
19 }
20}
21
22impl core::error::Error for NotEnoughResources {}