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
use core::{future::Future, ptr::NonNull};

#[derive(Clone, Copy)]
#[must_use]
pub(super) enum TaskSlot {
    Empty,
    Idle(NonNull<dyn Future<Output = ()>>),
    Polling,
    Panicked(NonNull<dyn Future<Output = ()>>),
    Dropping,
}