Skip to main content

compio_driver/sys/op/
mod.rs

1//! The async operations.
2//!
3//! Types in this mod represents the low-level operations passed to kernel.
4//! The operation itself doesn't perform anything.
5//! You need to pass them to [`crate::Proactor`], and poll the driver.
6
7use crate::sys::prelude::*;
8
9mod_use![
10    asyncify, general, ext, flag, socket, fs, managed, multishot, zerocopy
11];
12
13cfg_select! {
14    unix => {
15        mod_use![unix];
16
17        pub use crate::sys::pal::{CurrentDir, Interest};
18        pub use rustix::fs::{Mode, OFlags, Stat};
19    }
20    _ => {}
21}
22
23cfg_select! {
24    any(target_os = "linux", target_os = "android") => {
25        pub use rustix::pipe::SpliceFlags;
26    }
27    _ => {}
28}
29
30pub use rustix::net::{RecvFlags, ReturnFlags, SendFlags};