[−][src]Struct kcpserver::kcp::kcp_config::KcpNoDelayConfig
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
- Enable NoDelay
- Set ticking interval to be 10ms
- Set fast resend to be 2
- Disable congestion control
Trait Implementations
impl Clone for KcpNoDelayConfig
[src]
fn clone(&self) -> KcpNoDelayConfig
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for KcpNoDelayConfig
[src]
impl Debug for KcpNoDelayConfig
[src]
impl Default for KcpNoDelayConfig
[src]
fn default() -> KcpNoDelayConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for KcpNoDelayConfig
impl Send for KcpNoDelayConfig
impl Sync for KcpNoDelayConfig
impl Unpin for KcpNoDelayConfig
impl UnwindSafe for KcpNoDelayConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,