dope-sys 0.27.0

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

pub trait Retain<C: Context> {
    /// # Safety
    /// Every submitted pointee remains live with its admitted bounds until its flight settles.
    unsafe fn retain<'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;
}