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
use dope_core::driver::{
    retained,
    schedule::{app, ready},
};

/// Driver resources borrowed for the first task turn.
pub struct Context<'a, 'turn, 'borrow, 'owner, 'd: 'owner> {
    pub parent: ready::Target<'d>,
    pub work: app::Work<'turn, 'd>,
    pub driver: &'a mut retained::Context<'borrow, 'owner, 'd>,
}