1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//! # net_io
//!
//! The network IO substrate for the `-net` and `-io` crates: the entrance
//! and exit every service shares. It owns listeners and sockets (TCP, UDP,
//! Unix domain sockets, Windows named pipes), the lifecycle of each
//! connection, the limits and timeouts that keep a peer from pinning the
//! server, graceful drain, the PROXY protocol for running behind a reverse
//! proxy, and the seams that TLS and the connection gate plug into.
//!
//! It is protocol-free. It moves bytes and knows who is on the other end of
//! a connection; it does not know whether those bytes are HTTP, a database
//! wire protocol, or Raft messages. Protocol engines such as `http-net` and
//! `ws-net` sit on top of it.
//!
//! ## Status
//!
//! Design lock (`0.2.0`). No functional code yet. The public API is locked in
//! `docs/API.md`, the design and its decisions in `dev/PLAN.md`, and the
//! milestone schedule in `dev/ROADMAP.md` (all in the
//! [repository](https://github.com/jamesgober/net-io)). `0.3.0` brings TCP
//! with the blocking driver.
/// Crate version string, populated by Cargo at build time.
pub const VERSION: &str = env!;