Struct tokio_kcp::KcpNoDelayConfig
[−]
[src]
pub struct KcpNoDelayConfig { pub nodelay: bool, pub interval: i32, pub resend: i32, pub nc: bool, }
Kcp NoDelay Config
Fields
nodelay: bool
Enable nodelay
interval: i32
Internal update interval (ms)
resend: i32
ACK number to enable fast resend
nc: bool
Disable congetion control
Methods
impl KcpNoDelayConfig
[src]
fn fastest() -> KcpNoDelayConfig
Get a fastest configuration
- Enable NoDelay
- Set ticking interval to be 10ms
- Set fast resend to be 2
- Disable congestion control
Trait Implementations
impl Debug for KcpNoDelayConfig
[src]
impl Clone for KcpNoDelayConfig
[src]
fn clone(&self) -> KcpNoDelayConfig
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for KcpNoDelayConfig
[src]
impl Default for KcpNoDelayConfig
[src]
fn default() -> KcpNoDelayConfig
Returns the "default value" for a type. Read more