1 2 3 4 5 6 7 8 9 10 11 12
//! The util module rexports some tools from mio in order to facilitate handling timeouts. use slab; /// Used to identify some timed-out event. pub use mio::Token; /// A handle to a specific timeout. pub use mio::timer::Timeout; /// A Slab allocator for associating tokens to data. pub type Slab<T> = slab::Slab<T, Token>; #[cfg(feature="ssl")] /// TcpStream underlying the WebSocket pub use mio::tcp::TcpStream;