quiche

Struct TransportParams

Source
pub struct TransportParams {
Show 17 fields pub original_destination_connection_id: Option<ConnectionId<'static>>, pub max_idle_timeout: u64, pub stateless_reset_token: Option<u128>, pub max_udp_payload_size: u64, pub initial_max_data: u64, pub initial_max_stream_data_bidi_local: u64, pub initial_max_stream_data_bidi_remote: u64, pub initial_max_stream_data_uni: u64, pub initial_max_streams_bidi: u64, pub initial_max_streams_uni: u64, pub ack_delay_exponent: u64, pub max_ack_delay: u64, pub disable_active_migration: bool, pub active_conn_id_limit: u64, pub initial_source_connection_id: Option<ConnectionId<'static>>, pub retry_source_connection_id: Option<ConnectionId<'static>>, pub max_datagram_frame_size: Option<u64>,
}
Expand description

QUIC Transport Parameters

Fields§

§original_destination_connection_id: Option<ConnectionId<'static>>

Value of Destination CID field from first Initial packet sent by client

§max_idle_timeout: u64

The maximum idle timeout.

§stateless_reset_token: Option<u128>

Token used for verifying stateless resets

§max_udp_payload_size: u64

The maximum UDP payload size.

§initial_max_data: u64

The initial flow control maximum data for the connection.

§initial_max_stream_data_bidi_local: u64

The initial flow control maximum data for local bidirectional streams.

§initial_max_stream_data_bidi_remote: u64

The initial flow control maximum data for remote bidirectional streams.

§initial_max_stream_data_uni: u64

The initial flow control maximum data for unidirectional streams.

§initial_max_streams_bidi: u64

The initial maximum bidirectional streams.

§initial_max_streams_uni: u64

The initial maximum unidirectional streams.

§ack_delay_exponent: u64

The ACK delay exponent.

§max_ack_delay: u64

The max ACK delay.

§disable_active_migration: bool

Whether active migration is disabled.

§active_conn_id_limit: u64

The active connection ID limit.

§initial_source_connection_id: Option<ConnectionId<'static>>

The value that the endpoint included in the Source CID field of a Retry Packet.

§retry_source_connection_id: Option<ConnectionId<'static>>

The value that the server included in the Source CID field of a Retry Packet.

§max_datagram_frame_size: Option<u64>

DATAGRAM frame extension parameter, if any.

Implementations§

Source§

impl TransportParams

Source

pub fn to_qlog( &self, owner: TransportOwner, cipher: Option<Algorithm>, ) -> EventData

Creates a qlog event for connection transport parameters and TLS fields

Trait Implementations§

Source§

impl Clone for TransportParams

Source§

fn clone(&self) -> TransportParams

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for TransportParams

Source§

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

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

impl Default for TransportParams

Source§

fn default() -> TransportParams

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

impl PartialEq for TransportParams

Source§

fn eq(&self, other: &TransportParams) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for TransportParams

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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.