dope 0.5.5

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 + 'static {
    type Sqe;

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

    fn submit_to_drain(&mut self) -> bool;

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

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