Rust referencezer0-secret-stream
zer0-secret-stream · config
Source declarations, signatures and documentation for config.
Source: sigil/weave/network/zer0-secret-stream/src/config.rs. SHA-256: d49a5579e9824d4381ea38c839757c98f0298fd3962802839585d50c2fc3b075.
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::SecretTunables
Tunable limits and timeouts (no magic numbers)
#[derive(Debug, Clone)]
pub struct SecretTunables {
/// Maximum size of any handshake frame (bytes)
pub handshake_max_frame: usize,
/// Maximum size of any application payload/frame before encryption (bytes)
pub max_application_frame: usize,
/// Capacity of unordered message queue
pub unordered_queue_capacity: usize,
/// Maximum growth allowed for the internal read buffer (bytes)
pub read_buffer_max: usize,
/// Keep-alive interval; 0 disables keep-alives
pub keep_alive_interval: Duration,
/// Idle timeout; 0 disables idle timeouts
pub idle_timeout: Duration,
/// IO timeout used during handshake and per-frame operations; 0 disables
pub io_timeout: Duration
}Source line: 7.
config::SecretTunables::validate
Validate values and clamp to safe ranges
pub fn validate(&mut self);Source line: 40.