pub struct Config {
    pub idle_timeout_in_ms: u64,
    pub reliable_stream_buffer: u64,
    pub unreliable_stream_buffer: u64,
    pub keep_alive_timeout: Option<Duration>,
    pub initial_main_recv_size: usize,
    pub main_recv_first_bytes: usize,
    pub initial_rt_recv_size: usize,
    pub rt_recv_first_bytes: usize,
    pub initial_background_recv_size: usize,
    pub background_recv_first_bytes: usize,
}
Expand description

The Endpoint Configuration Structure

Used when creating a new Endpoint

Fields§

§idle_timeout_in_ms: u64

The quic connection idle timeout in milliseconds.

§reliable_stream_buffer: u64

The quic connection bidirectional stream receive buffer length in bytes.

These streams are intended for communicating reliable information. Most applications should probably set this to a multiple of 65536

§unreliable_stream_buffer: u64

The quic connection unidirectional stream receive buffer length in bytes.

These streams are intended for real-time unreliable information. Most applications should probably set this to a multiple of 65536

§keep_alive_timeout: Option<Duration>

The keep alive timeout duration.

If there is a value and the duration has passed since the quic connection had recieved anything the quic connection will send out a PING to try and keep the connection alive. Any potential keep alives currently occur right before the tick callback function is called.

§initial_main_recv_size: usize

The initial main stream recieve buffer size.

This could be set to the max size of the expected data to process to avoid the minimal resize costs.

§main_recv_first_bytes: usize

The number of bytes to receive on the main stream before calling main_stream_recv for the first time.

If this value is set to 0 it will be changed to 1 during endpoint creation

§initial_rt_recv_size: usize

The initial real-time stream recieve buffer size.

This could be set to the max size of the expected data to process to avoid the minimal resize costs.

§rt_recv_first_bytes: usize

The number of bytes to receive on the real-time stream before calling main_stream_recv for the first time.

If this value is set to 0 the

§initial_background_recv_size: usize

The initial background stream recieve buffer size.

This could be set to the max size of the expected data to process to avoid the minimal resize costs.

§background_recv_first_bytes: usize

The number of bytes to receive on the background stream before calling main_stream_recv for the first time.

If this value is set to 0 it will be changed to 1 during endpoint creation

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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, U> TryFrom<U> for Twhere 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 Twhere 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.