Skip to main content

Module session

Module session 

Source
Expand description

Client-First Transport Session

PhantomSession provides instant connection establishment with automatic send queuing during handshake. This is the transport-level API that sits below MLS and above the raw UDP/TCP transport.

Re-exports§

pub use crate::transport::session_transport::FramePhase;
pub use crate::transport::session_transport::SessionTransport;

Structs§

PhantomSession
Client-first session — instant connect(), non-blocking send().
ResumptionHint
0-RTT resumption material extracted from a completed session.
TrafficShapingConfig
Anti-fingerprint traffic-shaping configuration (WIRE v6, direction #4). Set on an established session via PhantomSession::set_traffic_shaping. All shaping is opt-in — the default (and the field defaults here) is no shaping, so a session pays nothing unless an embedder enables it.

Enums§

ConnectionState
Connection state for PhantomSession.
SessionCommand
Commands for the background session task

Functions§

connect_pinned
connect_pinned_with_resumption
Connect to a pinned server with a 0-RTT resumption attempt — the resumption-aware analogue of connect_pinned.