Available on crate feature
std only.Expand description
Stream Demultiplexer
Routes decrypted inbound payloads to their target streams based on the
stream_id carried in the PhantomPacket header. A lightweight, zero-copy
routing table (DashMap<stream_id, mpsc::Sender>) keyed by u32 stream id:
the recv pump looks up the sender and hands off the Bytes payload without
copying. Stream id 0 is reserved for the session-level control channel;
unknown stream ids are dropped with a log warning.
Structs§
- Stream
Demultiplexer - A lightweight stream demultiplexer that routes packets to registered streams.
- Stream
Handle - Handle returned when a stream is registered with the demultiplexer.
Enums§
- Stream
Message - Messages routed to a stream by the demultiplexer.