serve-net 0.7.0

The network service engine for Rust: listeners over net-io, ingress from direct clients, reverse proxies (PROXY protocol or trusted forwarded headers), Unix sockets, and FastCGI, a per-connection engine with a slot for any sans-IO protocol engine, admission, drain, and restarts without dropped connections.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! The synchronization primitives serve-net's shared state uses: `std`'s in
//! normal builds, loom's under `cfg(serve_net_loom)` so the models in `loom_tests` can
//! explore every interleaving.

#[cfg(serve_net_loom)]
pub(crate) use loom::sync::atomic::{AtomicU32, AtomicU64};
#[cfg(serve_net_loom)]
pub(crate) use loom::sync::{Mutex, MutexGuard};
#[cfg(not(serve_net_loom))]
pub(crate) use std::sync::atomic::{AtomicU32, AtomicU64};
#[cfg(not(serve_net_loom))]
pub(crate) use std::sync::{Mutex, MutexGuard};