dope 0.6.0

The manifold runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::io;
use std::time::Duration;

use crate::backend::PushError;
use crate::backend::cqe::Cqe;

pub trait Drive: Sized {
    type Sqe;

    fn push(&self, sqe: Self::Sqe) -> Result<(), PushError>;

    fn submit_to_drain(&self) -> bool;

    fn drain(&self, buf: &mut [Cqe]) -> usize;

    fn park(&self, timeout: Duration) -> io::Result<()>;
}