2016-07-30 17:53:12 -07:00
|
|
|
//! 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;
|
|
|
|
|
|
|
|
|
|
mod readiness_stream;
|
|
|
|
|
mod event_loop;
|
|
|
|
|
mod tcp;
|
2016-08-02 22:49:22 -07:00
|
|
|
mod udp;
|
2016-08-03 09:55:47 -07:00
|
|
|
mod timeout;
|
|
|
|
|
pub mod timer_wheel;
|
2016-07-30 17:53:12 -07:00
|
|
|
#[path = "../../src/slot.rs"]
|
|
|
|
|
mod slot;
|
|
|
|
|
#[path = "../../src/lock.rs"]
|
|
|
|
|
mod lock;
|
|
|
|
|
|
|
|
|
|
pub use event_loop::{Loop, LoopHandle};
|
|
|
|
|
pub use readiness_stream::ReadinessStream;
|
|
|
|
|
pub use tcp::{TcpListener, TcpStream};
|
2016-08-03 09:55:47 -07:00
|
|
|
pub use timeout::Timeout;
|
2016-08-02 22:49:22 -07:00
|
|
|
pub use udp::UdpSocket;
|