dope-sys 0.28.1

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::io::{
    reactor::ready::{Driver, delivery::entry, store::Exec},
    request,
};

pub trait Context: Driver {
    type Outbound: Copy;
    type Handle;
    type Created: entry::Create<
            Self::Outbound,
            Self::Handle,
            Key = <Self::Context as Exec>::Key,
            Output = <Self::Context as Exec>::Event,
        >;
    type File: request::Complete<Output = <Self::Context as Exec>::Event>;

    fn file(key: <Self::Context as Exec>::Key) -> Self::File;
}