Let's rename everything!

This commit is contained in:
Alex Crichton
2016-07-30 22:50:58 -07:00
commit bc64194be1
14 changed files with 1708 additions and 0 deletions
+46
View File
@@ -0,0 +1,46 @@
//! A binding to mio giving it a future/stream interface on top.
//!
//! This library contains the rudimentary bindings to an event loop in mio which
//! provides future and stream-based abstractions of all the underlying I/O
//! objects that mio provides internally.
//!
//! Currently very much a work in progress, and breakage should be expected!
#![deny(missing_docs)]
extern crate futures;
extern crate futures_io;
extern crate mio;
extern crate slab;
#[macro_use]
extern crate scoped_tls;
#[macro_use]
extern crate log;
use std::io;
use futures::Future;
use futures::stream::Stream;
mod readiness_stream;
mod event_loop;
mod tcp;
mod buf_reader;
mod buf_writer;
#[path = "../../src/slot.rs"]
mod slot;
#[path = "../../src/lock.rs"]
mod lock;
/// A convenience typedef around a `Future` whose error component is `io::Error`
pub type IoFuture<T> = Future<Item=T, Error=io::Error>;
/// A convenience typedef around a `Stream` whose error component is `io::Error`
pub type IoStream<T> = Stream<Item=T, Error=io::Error>;
pub use event_loop::{Loop, LoopHandle};
pub use readiness_stream::ReadinessStream;
pub use tcp::{TcpListener, TcpStream};
pub use buf_reader::{BufReader, InputBuf};
pub use buf_writer::{BufWriter, Flush, Reserve};