Zer0 Proto Mp
Channels
A WeaveMux owns the shared stream and opens protocol channels.
Workflow and current contract
A WeaveMux owns the shared stream and opens protocol channels. Channel APIs use MessageId and Bytes; channel statistics and handles are separate exported types. Shut down the mux when the connection is finished.
Multiplexing separates logical protocols. It does not encrypt an unencrypted input stream or validate an application capability. Supply the transport/session layer appropriate to the application, and handle channel closure and errors.
Source reference
channeldeclarations —libs/zer0-proto-mp/src/channel.rs.muxdeclarations —libs/zer0-proto-mp/src/mux.rs.protocoldeclarations —libs/zer0-proto-mp/src/protocol.rs.