Skip to main content

Module protocol

Module protocol 

Source
Expand description

Protocol-state surface area.

Defines the SessionState trait that every front-end protocol implementation (kawa_h1, mux, pipe, proxy_protocol, rustls) plugs into the mio worker loop. State implementations decide how to react to readiness events, manage timeouts, render their internal state for debugging, and signal whether the session can be torn down.

Re-exports§

pub use crate::protocol::http::Http;
pub use crate::protocol::kawa_h1 as http;
pub use crate::protocol::pipe::Pipe;
pub use crate::protocol::proxy_protocol::send::SendProxyProtocol;
pub use crate::protocol::rustls::TlsHandshake;

Modules§

kawa_h1
HTTP/1.1 session state on top of Kawa.
mux
HTTP/1.1 and HTTP/2 multiplexing layer.
pipe
Transparent byte-stream forwarder (TCP + WebSocket post-upgrade).
proxy_protocol
HAProxy PROXY protocol (v1 + v2) state surface.
rustls
Rustls handshake driver.
udp
Pure sans-io UDP load-balancing core.

Traits§

SessionState
All States should satisfy this trait in order to receive and handle Session events