zer0-proto-mp · mux
Source declarations, signatures and documentation for mux.
Source: sigil/weave/libs/zer0-proto-mp/src/mux.rs. SHA-256: a938d09bf767b9620ff14b586f88af68d97ddf2bc47107544a905e41355227f2.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
mux::WeaveMux
Protocol multiplexer
pub struct WeaveMux<S> {
}Source line: 21.
mux::WeaveMux<S>::export_metrics_text
Export Prometheus-style metrics
pub fn export_metrics_text(&self, namespace: &str) -> String;Source line: 65.
mux::WeaveMux<S>::new
Create a new protocol multiplexer
pub fn new(stream: S, config: MuxConfig) -> Self;Source line: 69.
mux::WeaveMux<S>::open_channel
Open a new channel for a protocol
pub async fn open_channel(&self, protocol: Protocol) -> Result<ChannelHandle>;Source line: 114.
mux::WeaveMux<S>::accept_channel
Accept an incoming channel
pub async fn accept_channel(&self) -> Result<ChannelHandle>;Source line: 150.
mux::WeaveMux<S>::shutdown
Shutdown the multiplexer
pub async fn shutdown(&self) -> Result<()>;Source line: 156.