Skip to main content

TransportConfig

Struct TransportConfig 

Source
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: u64

Largest UDP payload we accept (transport parameter max_udp_payload_size).

§max_datagram_size: usize

Largest datagram we try to send; reached by PMTU probing from 1200 bytes.

§mtu_probing: bool

Probe 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: u64

Unacknowledged bytes buffered per send stream.

§ack_delay_exponent: u64§max_ack_delay: Duration§active_connection_id_limit: u64

Connection IDs we accept from the peer.

§max_local_cids: u64

Connection IDs we issue at most (capped by the peer’s limit).

§disable_active_migration: bool§crypto_buffer: usize

Out-of-order CRYPTO bytes buffered per level (RFC 9000 §7.5).

§max_ack_ranges: usize

ACK 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: u32

Ack-eliciting packets received before an ACK is sent immediately.

Trait Implementations§

Source§

impl Clone for TransportConfig

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TransportConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TransportConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.