Struct tokio_kcp::KcpConfig [] [src]

pub struct KcpConfig {
    pub mtu: Option<usize>,
    pub interval: Option<u32>,
    pub nodelay: Option<KcpNoDelayConfig>,
    pub wnd_size: Option<(u16, u16)>,
    pub rx_minrto: Option<u32>,
    pub session_expire: Option<Duration>,
    pub fast_resend: Option<u32>,
    pub flush_write: bool,
    pub flush_acks_input: bool,
    pub stream: bool,
}

Kcp Config

Fields

Max Transmission Unit

Internal update interval

nodelay

Send window size

Minimal resend timeout

Session expire duration, default is 90 seconds

Fast resend

Flush KCP state immediately after write

Flush ACKs immediately after input

Stream mode

Trait Implementations

impl Debug for KcpConfig
[src]

[src]

Formats the value using the given formatter.

impl Clone for KcpConfig
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for KcpConfig
[src]

impl Default for KcpConfig
[src]

[src]

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