dope-uring 0.26.0

Owned io_uring backend for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
mod create;
mod dir;
mod open;
mod source;

use o3::base::num::bounded;

use crate::Cpus;

/// Retains the native mask index already admitted by the CPU iterator.
/// # Safety
/// `index` was yielded by this backend's range bounded by `Cpus::LIMIT`.
pub(crate) unsafe fn cpu(index: u16) -> bounded::U32<0, { Cpus::LIMIT as u32 - 1 }> {
    // SAFETY: the caller retains the iterator's exact native mask bound.
    unsafe { bounded::raw::u32(u32::from(index)) }
}