uring 0.1.0

Pure Rust library for io_uring
1
2
3
4
5
6
7
8
9
10
11
#[test]
fn next_sqe() {
    const ENTRIES: u32 = 2;
    let (mut sq, _) = uring::IoUring::with_entries(2).setup().unwrap();

    for _ in 0..ENTRIES {
        assert!(sq.next_sqe().is_some())
    }

    assert!(sq.next_sqe().is_none())
}