Finish docs on futures-mio

Also remove mio BufReader/BufWriter for now, they should come back shortly
though
This commit is contained in:
Alex Crichton
2016-08-01 17:41:58 -07:00
parent 7ffe72dc73
commit 5970203b21
7 changed files with 27 additions and 369 deletions
+2 -1
View File
@@ -5,6 +5,7 @@
#[macro_use]
extern crate futures;
extern crate futures_io;
extern crate futures_mio;
use std::env;
@@ -32,7 +33,7 @@ fn main() {
l.run(server).unwrap();
}
fn write(socket: futures_mio::TcpStream) -> Box<futures_mio::IoFuture<()>> {
fn write(socket: futures_mio::TcpStream) -> Box<futures_io::IoFuture<()>> {
static BUF: &'static [u8] = &[0; 64 * 1024];
socket.into_future().map_err(|e| e.0).and_then(move |(ready, mut socket)| {
let ready = match ready {