#api #io #stream

io-extras

File/socket handle/descriptor utilities

5 releases

0.12.2 Nov 19, 2021
0.12.1 Nov 19, 2021
0.11.2 Nov 12, 2021

#328 in Rust patterns

Download history 62/week @ 2021-11-04 1341/week @ 2021-11-11 1190/week @ 2021-11-18 814/week @ 2021-11-25 623/week @ 2021-12-02 1169/week @ 2021-12-09 2053/week @ 2021-12-16 524/week @ 2021-12-23 1880/week @ 2021-12-30 2539/week @ 2022-01-06 2198/week @ 2022-01-13 3210/week @ 2022-01-20

9,911 downloads per month
Used in 33 crates (12 directly)

Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT

100KB
2.5K SLoC

io-extras

File/socket handle/descriptor utilities

Github Actions CI Status crates.io page docs.rs docs

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.

  • RawReadable and RawWritable, 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.

Dependencies

~0.1–2.5MB
~46K SLoC