#[non_exhaustive]pub struct Config {
pub stream_buffer: usize,
pub protocol: Option<String>,
pub max_concurrent_uni_streams: Option<usize>,
pub max_concurrent_bi_streams: Option<usize>,
pub latency: Duration,
}Expand description
The options both sides of a pair share.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stream_buffer: usizeQueued bytes one stream holds before its writer pends. An empty stream always takes one write, so 0 holds one message at a time.
protocol: Option<String>The application protocol both sides report, standing in for a negotiated ALPN.
max_concurrent_uni_streams: Option<usize>Uni streams one side may have open toward its peer at once, as QUIC’s stream credit.
A stream is open until its reader reaches the end, stops, or drops it, accepted or
not. None grants credit without limit.
max_concurrent_bi_streams: Option<usize>Bidi streams one side may have open toward its peer at once, as QUIC’s stream credit.
A stream is open until the peer is done with both halves: its reader reaches the end,
stops, or drops it, and its writer finishes, resets, or drops it. None grants credit
without limit.
latency: DurationHow long each stream message and finish takes to reach its reader, on the ambient clock. Zero delivers at once.