Expand description
§Compio
A thread-per-core Rust runtime with IOCP/io_uring/polling. The name comes from “completion-based IO”. This crate is inspired by monoio.
§Quick start
use compio::{fs::File, io::AsyncReadAtExt};
let file = File::open("Cargo.toml").await.unwrap();
let (read, buffer) = file
.read_to_end_at(Vec::with_capacity(1024), 0)
.await
.unwrap();
assert_eq!(read, buffer.len());
let buffer = String::from_utf8(buffer).unwrap();
println!("{}", buffer);Re-exports§
pub use buf::BufResult;pub use runtime::event;eventpub use runtime::time;timepub use buf::arrayvec;arrayvecpub use buf::bumpalo;bumpalopub use buf::bytes;bytespub use tls::native_tls;native-tlspub use tls::rustls;rustls
Modules§
- Utilities for working with buffers.
- dispatcher
dispatcherMultithreading dispatcher for compio. - The platform-specified driver. Some types differ by compilation target.
- fs
runtimeFilesystem manipulation operations. - io
ioThis crate provides traits and utilities for completion-based IO. - net
runtimeNetwork related. - runtime
runtimeThe runtime of compio. - signal
signalAsynchronous signal handling. - tls
tlsAsync TLS streams.