dope-sys 0.28.0

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::io::reactor::{
    complete::Vacancy,
    ready::store::{Exec, submit::Context},
};

pub trait Execute<C: Context> {
    fn execute<'a>(
        self,
        state: &'a mut C::State,
        key: <C::Context as Exec>::Key,
        vacant: impl Vacancy<Event = <C::Context as Exec>::Event>,
    ) where
        C::Context: 'a;
}