[][src]Struct kcpclient::kcp::kcp_config::KcpConfig

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

mtu: Option<usize>

Max Transmission Unit

interval: Option<u32>

Internal update interval

nodelay: Option<KcpNoDelayConfig>

nodelay

wnd_size: Option<(u16, u16)>

Send window size

rx_minrto: Option<u32>

Minimal resend timeout

session_expire: Option<Duration>

Session expire duration, default is 90 seconds

fast_resend: Option<u32>

Fast resend

flush_write: bool

Flush KCP state immediately after write

flush_acks_input: bool

Flush ACKs immediately after input

stream: bool

Stream mode

Trait Implementations

impl Clone for KcpConfig[src]

impl Copy for KcpConfig[src]

impl Debug for KcpConfig[src]

impl Default for KcpConfig[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.