Skip to main content

Module api

Module api 

Source
Expand description

Phantom Protocol Public API

Transport session facade for the SDK.

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 SessionTransport over tokio::net::TcpStream.