Skip to main content

TransportConfig

Struct TransportConfig 

Source
pub struct TransportConfig { /* private fields */ }
Expand description

Transport settings shared by all connections (RFC 9000 §18.2).

Implementations§

Source§

impl TransportConfig

Source

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).

Source

pub fn idle_timeout(&self) -> Option<Duration>

Returns the configured idle timeout.

Source

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).

Source

pub fn keep_alive(&self) -> Option<Duration>

Returns the keep-alive interval.

Source

pub fn datagram_receive_buffer_size(&mut self, size: usize) -> &mut Self

Sets the datagram receive buffer capacity in bytes (RFC 9221).

Source

pub fn datagram_buffer_size(&self) -> usize

Returns the datagram receive buffer size.

Source

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).

Source

pub fn get_initial_max_data(&self) -> u64

Returns initial connection-level data limit.

Source

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.

Source

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.

Source

pub fn initial_max_stream_data_uni(&mut self, value: u64) -> &mut Self

Sets the initial flow control limit for peer-initiated unidirectional streams.

Source

pub fn initial_max_streams_bidi(&mut self, value: u64) -> &mut Self

Sets the initial maximum number of bidirectional streams the peer may open.

Source

pub fn initial_max_streams_uni(&mut self, value: u64) -> &mut Self

Sets the initial maximum number of unidirectional streams the peer may open.

Source

pub fn max_udp_payload_size(&mut self, value: u64) -> &mut Self

Sets the maximum UDP payload size that can be received.

Source

pub fn ack_delay_exponent(&mut self, value: u8) -> &mut Self

Sets the ACK delay exponent.

Source

pub fn max_ack_delay(&mut self, value: Duration) -> &mut Self

Sets the maximum ACK delay.

Source

pub fn disable_active_migration(&mut self, disable: bool) -> &mut Self

Enables or disables active connection migration.

Source

pub fn active_connection_id_limit(&mut self, limit: u64) -> &mut Self

Sets the active connection ID limit advertised to the peer.

Source

pub fn max_concurrent_uni_streams(&mut self, count: u64) -> &mut Self

Sets the maximum concurrent unidirectional streams limit.

Source

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

Source§

fn clone(&self) -> TransportConfig

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V