Expand description
Phantom Protocol Public API
Transport session facade for the SDK.
session::PhantomSession— Client-first transport session (all targets)stream::PhantomStream— Multiplexed reliable stream (all targets)listener::PhantomListener— Server socket listener (native only)tcp_transport::TcpSessionTransport— Length-prefixed framing over TCP (native only)
On wasm32-unknown-unknown (browser) targets the TCP-based building
blocks are absent; use WebSocketLeg as
the SessionTransport implementation. On wasm32-wasi* targets
with --features wasi-leg, use
WasiLeg (paired with
WasiRuntime) for a TCP-shaped
transport over WASI Preview 2 sockets.
Re-exports§
pub use session::ConnectionState;pub use session::PhantomSession;pub use session::SessionTransport;pub use stream::PhantomStream;pub use listener::PhantomListener;pub use tcp_transport::TcpSessionTransport;
Modules§
- listener
- session
- Client-First Transport Session
- stream
- tcp_
transport - Length-prefixed
SessionTransportovertokio::net::TcpStream.