pub struct TransportConfig { /* private fields */ }Expand description
Transport settings shared by all connections (RFC 9000 §18.2).
Implementations§
Source§impl TransportConfig
impl TransportConfig
Sourcepub fn max_idle_timeout(&mut self, timeout: Option<Duration>) -> &mut Self
pub fn max_idle_timeout(&mut self, timeout: Option<Duration>) -> &mut Self
Sets the maximum time a connection may remain idle before closing (RFC 9000 §10.1).
Sourcepub fn idle_timeout(&self) -> Option<Duration>
pub fn idle_timeout(&self) -> Option<Duration>
Returns the configured idle timeout.
Sourcepub fn keep_alive_interval(&mut self, interval: Option<Duration>) -> &mut Self
pub fn keep_alive_interval(&mut self, interval: Option<Duration>) -> &mut Self
Sets the interval at which PING frames are sent to keep the connection alive (RFC 9000 §10.1.2).
Sourcepub fn keep_alive(&self) -> Option<Duration>
pub fn keep_alive(&self) -> Option<Duration>
Returns the keep-alive interval.
Sourcepub fn datagram_receive_buffer_size(&mut self, size: usize) -> &mut Self
pub fn datagram_receive_buffer_size(&mut self, size: usize) -> &mut Self
Sets the datagram receive buffer capacity in bytes (RFC 9221).
Sourcepub fn datagram_buffer_size(&self) -> usize
pub fn datagram_buffer_size(&self) -> usize
Returns the datagram receive buffer size.
Sourcepub fn initial_max_data(&mut self, value: u64) -> &mut Self
pub fn initial_max_data(&mut self, value: u64) -> &mut Self
Sets the initial connection-level flow control data limit in bytes (RFC 9000 §18.2).
Sourcepub fn get_initial_max_data(&self) -> u64
pub fn get_initial_max_data(&self) -> u64
Returns initial connection-level data limit.
Sourcepub fn initial_max_stream_data_bidi_local(&mut self, value: u64) -> &mut Self
pub fn initial_max_stream_data_bidi_local(&mut self, value: u64) -> &mut Self
Sets the initial flow control limit for locally initiated bidirectional streams.
Sourcepub fn initial_max_stream_data_bidi_remote(&mut self, value: u64) -> &mut Self
pub fn initial_max_stream_data_bidi_remote(&mut self, value: u64) -> &mut Self
Sets the initial flow control limit for peer-initiated bidirectional streams.
Sourcepub fn initial_max_stream_data_uni(&mut self, value: u64) -> &mut Self
pub fn initial_max_stream_data_uni(&mut self, value: u64) -> &mut Self
Sets the initial flow control limit for peer-initiated unidirectional streams.
Sourcepub fn initial_max_streams_bidi(&mut self, value: u64) -> &mut Self
pub fn initial_max_streams_bidi(&mut self, value: u64) -> &mut Self
Sets the initial maximum number of bidirectional streams the peer may open.
Sourcepub fn initial_max_streams_uni(&mut self, value: u64) -> &mut Self
pub fn initial_max_streams_uni(&mut self, value: u64) -> &mut Self
Sets the initial maximum number of unidirectional streams the peer may open.
Sourcepub fn max_udp_payload_size(&mut self, value: u64) -> &mut Self
pub fn max_udp_payload_size(&mut self, value: u64) -> &mut Self
Sets the maximum UDP payload size that can be received.
Sourcepub fn ack_delay_exponent(&mut self, value: u8) -> &mut Self
pub fn ack_delay_exponent(&mut self, value: u8) -> &mut Self
Sets the ACK delay exponent.
Sourcepub fn max_ack_delay(&mut self, value: Duration) -> &mut Self
pub fn max_ack_delay(&mut self, value: Duration) -> &mut Self
Sets the maximum ACK delay.
Sourcepub fn disable_active_migration(&mut self, disable: bool) -> &mut Self
pub fn disable_active_migration(&mut self, disable: bool) -> &mut Self
Enables or disables active connection migration.
Sourcepub fn active_connection_id_limit(&mut self, limit: u64) -> &mut Self
pub fn active_connection_id_limit(&mut self, limit: u64) -> &mut Self
Sets the active connection ID limit advertised to the peer.
Sourcepub fn max_concurrent_uni_streams(&mut self, count: u64) -> &mut Self
pub fn max_concurrent_uni_streams(&mut self, count: u64) -> &mut Self
Sets the maximum concurrent unidirectional streams limit.
Sourcepub fn max_concurrent_bi_streams(&mut self, count: u64) -> &mut Self
pub fn max_concurrent_bi_streams(&mut self, count: u64) -> &mut Self
Sets the maximum concurrent bidirectional streams limit.
Trait Implementations§
Source§impl Clone for TransportConfig
impl Clone for TransportConfig
Source§fn clone(&self) -> TransportConfig
fn clone(&self) -> TransportConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more