Struct peerlink::StreamConfig
source · pub struct StreamConfig {
pub rx_buf_min_size: usize,
pub tx_buf_limits: Range<usize>,
pub stream_write_timeout: Duration,
}Expand description
Stream related configuration parameters.
Fields§
§rx_buf_min_size: usizeDefines the minimum size of the buffer used for message reassembly. Low values will cause more frequent reallocation while high values will reallocate less at the expense of more memory usage.
tx_buf_limits: Range<usize>Defines the lower and upper size bounds for the send buffer. Once the send buffer is full, it is not possible to queue new messages for sending until some capacity is available.
stream_write_timeout: DurationThe duration after which a peer is disconnected if it fails to read incoming data.
Trait Implementations§
source§impl Clone for StreamConfig
impl Clone for StreamConfig
source§fn clone(&self) -> StreamConfig
fn clone(&self) -> StreamConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more