Struct quiche::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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method 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> 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,

§

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>,

§

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>,

§

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.