azur 0.3.1

A no_std Rust crate that implements an executor/reactor and futures using io_uring
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::Op;
use crate::future::Future;

pub struct Nop;

unsafe impl Op for Nop {
    type Output = ();

    fn fill_sqe(&mut self, sqe: &mut lx::io_uring_sqe) {
        sqe.opcode = lx::IORING_OP_NOP;
    }

    fn complete(self, _ret: i32) -> Self::Output {}
}

pub fn nop() -> Future<Nop> {
    Future::new(Nop)
}