dope-sys 0.31.0

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::table::token::host::Closed;

/// Binds kernel identities to the host's original affine completion owners.
pub trait Drain {
    type Key;
    type Returned;
    type Flight;
    type Echo;
    type Class;
    type Driver;

    fn driver(&self) -> Self::Driver;
    fn bind(&self, key: Self::Key) -> Option<Self::Flight>;
    fn retired(&self, returned: Self::Returned) -> Closed<Self::Echo, Self::Class>;
}