dope_sys/table/token/host/
mod.rs1use crate::table::token;
2
3pub 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
14pub trait Retire {
16 fn echo(&self) -> u64;
17}
18pub 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;