Skip to main content

dope_sys/table/token/host/
mod.rs

1use crate::table::token;
2
3/// Exact host identity projections at the kernel token boundary.
4pub trait Context: token::Context {
5    type Key: Copy + Eq + Into<u64>;
6    type Close<'d>: AsRef<u64>;
7    type Retire<'d>: Retire;
8    type Returned: From<u64>;
9    type Probe: Copy + Into<u64>;
10
11    fn read_key(raw: u64) -> Option<Self::Key>;
12}
13
14/// The encoded identity of one affine descriptor retirement.
15pub trait Retire {
16    fn echo(&self) -> u64;
17}
18/// Consumes one bound retirement completion without copying its domain authority.
19pub trait Echo {
20    fn complete(self);
21    fn retry(self);
22}
23mod bound;
24mod cancel;
25mod closed;
26mod drain;
27mod flight;
28pub use bound::Bound;
29pub use cancel::Cancel;
30pub use closed::Closed;
31pub use drain::Drain;
32pub use flight::Flight;