pub struct TransportConfig {Show 21 fields
pub max_idle_timeout: Duration,
pub max_udp_payload_size: u64,
pub max_datagram_size: usize,
pub mtu_probing: bool,
pub max_data: u64,
pub stream_window_bidi_local: u64,
pub stream_window_bidi_remote: u64,
pub stream_window_uni: u64,
pub max_streams_bidi: u64,
pub max_streams_uni: u64,
pub send_buffer: u64,
pub ack_delay_exponent: u64,
pub max_ack_delay: Duration,
pub active_connection_id_limit: u64,
pub max_local_cids: u64,
pub disable_active_migration: bool,
pub crypto_buffer: usize,
pub max_ack_ranges: usize,
pub pacing: bool,
pub key_update_interval: Option<u64>,
pub ack_eliciting_threshold: u32,
}Expand description
Per-connection transport settings (sent as transport parameters where applicable).
Fields§
§max_idle_timeout: Duration§max_udp_payload_size: u64Largest UDP payload we accept (transport parameter max_udp_payload_size).
max_datagram_size: usizeLargest datagram we try to send; reached by PMTU probing from 1200 bytes.
mtu_probing: boolProbe for a larger path MTU after the handshake (RFC 9000 §14.3).
max_data: u64§stream_window_bidi_local: u64§stream_window_bidi_remote: u64§stream_window_uni: u64§max_streams_bidi: u64§max_streams_uni: u64§send_buffer: u64Unacknowledged bytes buffered per send stream.
ack_delay_exponent: u64§max_ack_delay: Duration§active_connection_id_limit: u64Connection IDs we accept from the peer.
max_local_cids: u64Connection IDs we issue at most (capped by the peer’s limit).
disable_active_migration: bool§crypto_buffer: usizeOut-of-order CRYPTO bytes buffered per level (RFC 9000 §7.5).
max_ack_ranges: usizeACK ranges tracked and sent.
pacing: bool§key_update_interval: Option<u64>Packets per key phase before a key update; None uses the AEAD limit.
ack_eliciting_threshold: u32Ack-eliciting packets received before an ACK is sent immediately.
Trait Implementations§
Source§impl Clone for TransportConfig
impl Clone for TransportConfig
Source§impl Debug for TransportConfig
impl Debug for TransportConfig
Auto Trait Implementations§
impl Forget for TransportConfig
impl Freeze for TransportConfig
impl Move for TransportConfig
impl RefUnwindSafe for TransportConfig
impl Send for TransportConfig
impl Sync for TransportConfig
impl Unpin for TransportConfig
impl UnsafeUnpin for TransportConfig
impl UnwindSafe for TransportConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more