mio-st 0.2.3

Single threaded, lightweight non-blocking IO
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Platform specific types.
//!
//! Each platform must have at least the following types:
//!
//! - `Selector`: system selector, e.g. `kqueue` or `epoll`, used by `Poller`.
//! - `TcpStream`: TCP stream, used in the net module.
//! - `TcpListener`: TCP listener, used in the net module.
//! - `UdpSocket`: UDP socket, used in the net module.
//! - `Awakener`: cross-thread awakener, used in `poll::Awakener`.

#[cfg(unix)]
mod unix;

#[cfg(unix)]
pub use self::unix::*;

/// Size of sack allocated system events array.
const EVENTS_CAP: usize = 128;