#io #network #blocking #buffered #eintr

netio

Alternative implementation of parts of std::io, better suited for blocking IO over networks

26 releases

Uses old Rust 2015

0.6.1 Dec 30, 2017
0.6.0 May 1, 2017
0.5.1 Jan 7, 2017
0.5.0 Aug 27, 2016
0.1.0 Mar 30, 2016

#4 in #blocking

Download history 3/week @ 2021-06-29 1/week @ 2021-07-06 27/week @ 2021-07-20 52/week @ 2021-07-27 26/week @ 2021-08-03 26/week @ 2021-08-17 1/week @ 2021-08-24 1/week @ 2021-08-31 1/week @ 2021-09-07 2/week @ 2021-09-14 1/week @ 2021-09-21 28/week @ 2021-09-28 1/week @ 2021-10-05 27/week @ 2021-10-12

113 downloads per month

MIT license

115KB
2K SLoC

netio

Crates.io

Alternative implementation of many functions found in std::io, but suitable for blocking IO over networks.

Description

The main reason for this crate is the handling of std::io::ErrorKind::Interrupted in std::io: Except for read() and write(), almost all functions will ignore interrupts and just retry.

This crate provides alternative implementations using a similar API but allow for interrupts whithout losing any content.

Most functions are based on BufRead instead of Read to ensure that no content is lost on retry.

Dependencies

~450KB