vecio
Vector IO, scatter/gather, readv, writev
Works on file descriptors on Unix, and sockets on Windows.
Example
extern crate vecio;
use Rawv;
use TcpStream;
Details
There are 3 traits of import in vecio
:
Rawv
Writev
Readv
The Rawv
trait implements Writev
and Readv
for any type that implements either AsRawFd
or AsRawSocket
(unix and windows).
The Writev
and Readv
traits exist so that any type that needs a custom implementation can have one.
In simple cases, just import vecio::Rawv
will give the methods on the proper types.