[][src]Struct kcpserver::kcp::kcp_config::KcpNoDelayConfig

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

Kcp Delay Config

Fields

nodelay: bool

Enable nodelay

interval: i32

Internal update interval (ms)

resend: i32

ACK number to enable fast resend

nc: bool

Disable congestion control

Implementations

impl KcpNoDelayConfig[src]

pub fn fastest() -> KcpNoDelayConfig[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 Clone for KcpNoDelayConfig[src]

impl Copy for KcpNoDelayConfig[src]

impl Debug for KcpNoDelayConfig[src]

impl Default for KcpNoDelayConfig[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.