io_extras/
lib.rs

1//! This crate provides a few miscellaneous utilities related to I/O:
2//!
3//! - `HandleOrSocket` types and traits for Windows, which abstract over
4//!   Windows `*Handle*` and their corresponding Windows `*Socket*` types and
5//!   traits.
6//!
7//! - `Grip` types and traits, which abstract over the aforementioned Windows
8//!   `HandleOrSocket` types and traits and their corresponding non-Windows
9//!   `Fd` types and traits.
10//!
11//! - `OwnedReadable`, `OwnedWriteable`, `BorrowedReadable`,
12//!   `BorrowedWriteable`, `RawReadable` and `RawWriteable`, which adapt a raw
13//!   `Fd`/`Handle` to implement the `Read` and `Write` traits, respectively.
14//!
15//! - `ReadWrite` traits, and supporting types, which provide abstractions over
16//!   types with one or two I/O resources, for reading and for writing.
17
18#![deny(missing_docs)]
19#![cfg_attr(can_vector, feature(can_vector))]
20#![cfg_attr(write_all_vectored, feature(write_all_vectored))]
21#![cfg_attr(target_os = "wasi", feature(wasi_ext))]
22
23pub mod borrowed;
24pub mod grip;
25pub mod os;
26pub mod owned;
27pub mod raw;
28pub mod read_write;