Crates.io | netio |
lib.rs | netio |
version | 0.6.1 |
source | src |
created_at | 2016-03-30 21:36:54.706797 |
updated_at | 2017-12-30 21:19:33.098214 |
description | Alternative implementation of parts of `std::io`, better suited for blocking IO over networks. |
homepage | |
repository | https://bitbucket.org/troplin/netio-rs |
max_upload_size | |
id | 4629 |
size | 128,826 |
Alternative implementation of many functions found in std::io
, but suitable
for blocking IO over networks.
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.