sark-core 0.21.0

Fiber-free request, route, dispatch, and lifecycle core for Sark
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use dope_core::driver::schedule::ready::task::{self, owner};

#[derive(Clone, Copy, Debug, Eq, PartialEq)]
pub enum Error {
    Full,
    Owner(owner::Error),
    Admission(task::Error),
    Topology(task::Error),
}

/// Immediate disposition of one admitted task.
pub enum Start<Pending, Output> {
    Ready(Output),
    Pending(Pending),
}