2016-08-05 09:53:50 -07:00
|
|
|
//! Mio bindings with streams and futures
|
2016-07-30 17:53:12 -07:00
|
|
|
//!
|
2016-08-05 09:53:50 -07:00
|
|
|
//! This crate uses the `futures_io` and `futures` crates to provide a thin
|
|
|
|
|
//! binding on top of mio of TCP and UDP sockets.
|
2016-07-30 17:53:12 -07:00
|
|
|
|
|
|
|
|
#![deny(missing_docs)]
|
|
|
|
|
|
|
|
|
|
extern crate futures;
|
|
|
|
|
extern crate mio;
|
|
|
|
|
extern crate slab;
|
|
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
|
extern crate scoped_tls;
|
|
|
|
|
|
|
|
|
|
#[macro_use]
|
|
|
|
|
extern crate log;
|
|
|
|
|
|
|
|
|
|
mod slot;
|
|
|
|
|
mod lock;
|
2016-08-20 23:41:19 -07:00
|
|
|
|
2016-08-27 12:33:22 -07:00
|
|
|
#[macro_use]
|
|
|
|
|
pub mod io;
|
|
|
|
|
|
2016-08-20 23:41:19 -07:00
|
|
|
mod channel;
|
|
|
|
|
mod event_loop;
|
2016-08-04 16:04:24 -07:00
|
|
|
mod mpsc_queue;
|
2016-08-20 23:41:19 -07:00
|
|
|
mod readiness_stream;
|
|
|
|
|
mod tcp;
|
|
|
|
|
mod timeout;
|
|
|
|
|
mod timer_wheel;
|
|
|
|
|
mod udp;
|
2016-07-30 17:53:12 -07:00
|
|
|
|
2016-08-20 23:41:19 -07:00
|
|
|
pub use channel::{Sender, Receiver};
|
2016-08-12 11:51:48 -07:00
|
|
|
pub use event_loop::{Loop, LoopPin, LoopHandle, AddSource, AddTimeout};
|
2016-08-31 00:19:29 -07:00
|
|
|
pub use event_loop::{TimeoutToken, IoToken};
|
2016-07-30 17:53:12 -07:00
|
|
|
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;
|