Zer0 Proto Mp
Protocol Builder
Build a Protocol using its name, semantic version, and declared message IDs/encodings.
Workflow and current contract
Build a Protocol using its name, semantic version, and declared message IDs/encodings. Protocol::builder().name("example").version(1, 0, 0).message(1, Encoding::Binary).build() describes an application protocol; it does not start a peer or negotiate application authorization.
Open it through WeaveMux::open_channel(protocol).await on an established underlying byte stream. Peers need compatible message schemas and lifecycle handling.
Source reference
protocoldeclarations —libs/zer0-proto-mp/src/protocol.rs.muxdeclarations —libs/zer0-proto-mp/src/mux.rs.