Struct quicr_core::Config [] [src]

pub struct Config {
    pub max_remote_bi_streams: u16,
    pub max_remote_uni_streams: u16,
    pub idle_timeout: u16,
    pub stream_receive_window: u32,
    pub receive_window: u32,
    pub max_tlps: u32,
    pub reordering_threshold: u32,
    pub time_reordering_fraction: u16,
    pub using_time_loss_detection: bool,
    pub min_tlp_timeout: u64,
    pub min_rto_timeout: u64,
    pub delayed_ack_timeout: u64,
    pub default_initial_rtt: u64,
    pub default_mss: u64,
    pub initial_window: u64,
    pub minimum_window: u64,
    pub loss_reduction_factor: u16,
    pub protocols: Vec<u8>,
    pub verify_peers: bool,
}

Parameters governing the core QUIC state machine.

Fields

Maximum number of peer-initiated bidirectional streams that may exist at one time.

Maximum number of peer-initiated unidirectional streams that may exist at one time.

Maximum duration of inactivity to accept before timing out the connection (s).

Maximum value is 600 seconds. The actual value used is the minimum of this and the peer's own idle timeout.

Maximum number of bytes the peer may transmit on any one stream before becoming blocked.

Maximum number of bytes the peer may transmit across all streams of a connection before becoming blocked.

Maximum number of tail loss probes before an RTO fires.

Maximum reordering in packet number space before FACK style loss detection considers a packet lost.

Maximum reordering in time space before time based loss detection considers a packet lost. 0.16 format

Whether time based loss detection is in use. If false, uses FACK style loss detection.

Minimum time in the future a tail loss probe alarm may be set for (μs).

Minimum time in the future an RTO alarm may be set for (μs).

The length of the peer’s delayed ack timer (μs).

The default RTT used before an RTT sample is taken (μs)

The default max packet size used for calculating default and minimum congestion windows.

Default limit on the amount of outstanding data in bytes.

Default minimum congestion window.

Reduction in congestion window when a new loss event is detected. 0.16 format

List of permissible protocols

Whether to verify the authenticity of peer certificates.

Turning this off exposes clients to man-in-the-middle attacks in the same manner as an unencrypted TCP connection, but allows them to connect to servers that are using self-signed certificates.

Trait Implementations

impl Default for Config
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Config

impl Sync for Config