#api #io #stream

io-extras

File/socket handle/descriptor utilities

18 unstable releases (6 breaking)

new 0.17.2 Feb 2, 2023
0.17.1 Dec 27, 2022
0.17.0 Nov 9, 2022
0.15.0 Jun 6, 2022
0.12.2 Nov 19, 2021

#101 in Operating systems

Download history 19126/week @ 2022-10-13 19295/week @ 2022-10-20 16378/week @ 2022-10-27 17371/week @ 2022-11-03 20449/week @ 2022-11-10 15963/week @ 2022-11-17 14471/week @ 2022-11-24 14530/week @ 2022-12-01 14459/week @ 2022-12-08 17820/week @ 2022-12-15 8709/week @ 2022-12-22 8662/week @ 2022-12-29 18384/week @ 2023-01-05 17257/week @ 2023-01-12 19067/week @ 2023-01-19 17253/week @ 2023-01-26

74,615 downloads per month
Used in 85 crates (16 directly)

Apache-2.0…

130KB
3K 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.

Minimum Supported Rust Version (MSRV)

This crate currently works on Rust 1.58, when default features are enabled. Some of the optional features have stricter requirements.

Dependencies

~0.2–9MB
~138K SLoC