Skip to main content

dope_sys/table/token/host/
drain.rs

1use crate::table::token::host::Closed;
2
3/// Binds kernel identities to the host's original affine completion owners.
4pub trait Drain {
5    type Key;
6    type Returned;
7    type Flight;
8    type Echo;
9    type Class;
10    type Driver;
11
12    fn driver(&self) -> Self::Driver;
13    fn bind(&self, key: Self::Key) -> Option<Self::Flight>;
14    fn retired(&self, returned: Self::Returned) -> Closed<Self::Echo, Self::Class>;
15}