Crate netio [] [src]

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.

Structs

Bytes

An iterator over u8 values of a reader.

Split

An iterator over the contents of an instance of BufRead split on a particular byte.

Traits

BufReadExt

Extension methods for std::io::BufRead

ReadExt

Extension methods for std::io::Read

Functions

copy

Copies the entire contents of a buffered reader into a writer.