dope-sys 0.77.0

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use crate::table::{
    reclaim::{Kind, View},
    token::host,
};

/// The complete descriptor domain also owns its queued and returned retirements.
pub trait Queue: View + Copy {
    type Pending: Into<Kind<Self::Close, Self::Retire>>;
    type Returned;
    type Echo: host::Echo;
    type Class;

    fn pending(&self) -> Option<Self::Pending>;
    fn has_inflight(&self) -> bool;
    fn bind(self, returned: Self::Returned) -> host::Closed<Self::Echo, Self::Class>;
}