mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-29 00:00:11 +02:00
Let's rename everything!
This commit is contained in:
+46
@@ -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};
|
||||
Reference in New Issue
Block a user