Files
tokio/src/lib.rs
T
Alex Crichton 2bd616df51 Reorganize the event_loop module
Split it up into a number of targeted modules for each purpose, for example loop
data, I/O sources, timeouts, and channels. No actual change is intended to be
part of this commit.
2016-08-20 23:24:56 -07:00

37 lines
808 B
Rust

//! Mio bindings with streams and futures
//!
//! This crate uses the `futures_io` and `futures` crates to provide a thin
//! binding on top of mio of TCP and UDP sockets.
#![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;
mod udp;
mod timeout;
mod timer_wheel;
#[path = "../../src/slot.rs"]
mod slot;
#[path = "../../src/lock.rs"]
mod lock;
mod mpsc_queue;
pub use event_loop::{Loop, LoopPin, LoopHandle, AddSource, AddTimeout};
pub use event_loop::{LoopData, AddLoopData, TimeoutToken, IoToken};
pub use readiness_stream::ReadinessStream;
pub use tcp::{TcpListener, TcpStream};
pub use timeout::Timeout;
pub use udp::UdpSocket;