Struct tokio_kcp::KcpNoDelayConfig [] [src]

pub struct KcpNoDelayConfig {
    pub nodelay: bool,
    pub interval: i32,
    pub resend: i32,
    pub nc: bool,
}

Kcp Delay Config

Fields

Enable nodelay

Internal update interval (ms)

ACK number to enable fast resend

Disable congetion control

Methods

impl KcpNoDelayConfig
[src]

[src]

Get a fastest configuration

  1. Enable NoDelay
  2. Set ticking interval to be 10ms
  3. Set fast resend to be 2
  4. Disable congestion control

Trait Implementations

impl Debug for KcpNoDelayConfig
[src]

[src]

Formats the value using the given formatter.

impl Clone for KcpNoDelayConfig
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for KcpNoDelayConfig
[src]

impl Default for KcpNoDelayConfig
[src]

[src]

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