Rust referencezer0-proto-mp
zer0-proto-mp · config
Source declarations, signatures and documentation for config.
Source: sigil/weave/libs/zer0-proto-mp/src/config.rs. SHA-256: d454f231e6a75521aee5b88dfbacf5c9ea1a8a66b554295c6dc3f16592bb696b.
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.
config::MuxConfig
Multiplexer configuration
#[derive(Debug, Clone)]
pub struct MuxConfig {
/// Maximum number of channels
pub max_channels: usize,
/// Maximum pending messages per channel
pub channel_buffer_size: usize,
/// Maximum frame size
pub max_frame_size: usize,
/// Send buffer size
pub send_buffer_size: usize,
/// Receive buffer size
pub recv_buffer_size: usize,
/// Handshake timeout
pub handshake_timeout: Duration,
/// Keep-alive interval (None to disable)
pub keep_alive: Option<Duration>,
/// Enable message compression
pub compression: bool,
/// Default channel weight for WFQ (1 = baseline)
pub default_channel_weight: u32,
/// Base quantum in bytes used by WFQ (per weight unit)
pub wfq_base_quantum: usize,
/// Per-channel credit window in bytes (initial and grant amount)
pub credits_window_bytes: usize,
/// Threshold to trigger sending new credits (bytes remaining <= threshold)
pub credits_grant_threshold_bytes: usize
}Source line: 7.
config::MuxConfig::low_latency
Create a configuration for low-latency applications
pub fn low_latency() -> Self;Source line: 66.
config::MuxConfig::high_throughput
Create a configuration for high-throughput applications
pub fn high_throughput() -> Self;Source line: 77.