io_extras/
lib.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//! This crate provides a few miscellaneous utilities related to I/O:
//!
//! - `HandleOrSocket` types and traits for Windows, which abstract over
//!   Windows `*Handle*` and their corresponding Windows `*Socket*` types and
//!   traits.
//!
//! - `Grip` types and traits, which abstract over the aforementioned Windows
//!   `HandleOrSocket` types and traits and their corresponding non-Windows
//!   `Fd` types and traits.
//!
//! - `OwnedReadable`, `OwnedWriteable`, `BorrowedReadable`,
//!   `BorrowedWriteable`, `RawReadable` and `RawWriteable`, which adapt a raw
//!   `Fd`/`Handle` to implement the `Read` and `Write` traits, respectively.
//!
//! - `ReadWrite` traits, and supporting types, which provide abstractions over
//!   types with one or two I/O resources, for reading and for writing.

#![deny(missing_docs)]
#![cfg_attr(can_vector, feature(can_vector))]
#![cfg_attr(write_all_vectored, feature(write_all_vectored))]
#![cfg_attr(target_os = "wasi", feature(wasi_ext))]

pub mod borrowed;
pub mod grip;
pub mod os;
pub mod owned;
pub mod raw;
pub mod read_write;