Struct IKCPCB

Source
#[repr(C)]
pub struct IKCPCB {
Show 49 fields pub conv: IUINT32, pub mtu: IUINT32, pub mss: IUINT32, pub state: IUINT32, pub snd_una: IUINT32, pub snd_nxt: IUINT32, pub rcv_nxt: IUINT32, pub ts_recent: IUINT32, pub ts_lastack: IUINT32, pub ssthresh: IUINT32, pub rx_rttval: IINT32, pub rx_srtt: IINT32, pub rx_rto: IINT32, pub rx_minrto: IINT32, pub snd_wnd: IUINT32, pub rcv_wnd: IUINT32, pub rmt_wnd: IUINT32, pub cwnd: IUINT32, pub probe: IUINT32, pub current: IUINT32, pub interval: IUINT32, pub ts_flush: IUINT32, pub xmit: IUINT32, pub nrcv_buf: IUINT32, pub nsnd_buf: IUINT32, pub nrcv_que: IUINT32, pub nsnd_que: IUINT32, pub nodelay: IUINT32, pub updated: IUINT32, pub ts_probe: IUINT32, pub probe_wait: IUINT32, pub dead_link: IUINT32, pub incr: IUINT32, pub snd_queue: IQUEUEHEAD, pub rcv_queue: IQUEUEHEAD, pub snd_buf: IQUEUEHEAD, pub rcv_buf: IQUEUEHEAD, pub acklist: *mut IUINT32, pub ackcount: IUINT32, pub ackblock: IUINT32, pub user: *mut c_void, pub buffer: *mut c_char, pub fastresend: c_int, pub fastlimit: c_int, pub nocwnd: c_int, pub stream: c_int, pub logmask: c_int, pub output: Option<unsafe extern "C" fn(buf: *const c_char, len: c_int, kcp: *mut IKCPCB, user: *mut c_void) -> c_int>, pub writelog: Option<unsafe extern "C" fn(log: *const c_char, kcp: *mut IKCPCB, user: *mut c_void)>,
}

Fields§

§conv: IUINT32§mtu: IUINT32§mss: IUINT32§state: IUINT32§snd_una: IUINT32§snd_nxt: IUINT32§rcv_nxt: IUINT32§ts_recent: IUINT32§ts_lastack: IUINT32§ssthresh: IUINT32§rx_rttval: IINT32§rx_srtt: IINT32§rx_rto: IINT32§rx_minrto: IINT32§snd_wnd: IUINT32§rcv_wnd: IUINT32§rmt_wnd: IUINT32§cwnd: IUINT32§probe: IUINT32§current: IUINT32§interval: IUINT32§ts_flush: IUINT32§xmit: IUINT32§nrcv_buf: IUINT32§nsnd_buf: IUINT32§nrcv_que: IUINT32§nsnd_que: IUINT32§nodelay: IUINT32§updated: IUINT32§ts_probe: IUINT32§probe_wait: IUINT32§dead_link: IUINT32§incr: IUINT32§snd_queue: IQUEUEHEAD§rcv_queue: IQUEUEHEAD§snd_buf: IQUEUEHEAD§rcv_buf: IQUEUEHEAD§acklist: *mut IUINT32§ackcount: IUINT32§ackblock: IUINT32§user: *mut c_void§buffer: *mut c_char§fastresend: c_int§fastlimit: c_int§nocwnd: c_int§stream: c_int§logmask: c_int§output: Option<unsafe extern "C" fn(buf: *const c_char, len: c_int, kcp: *mut IKCPCB, user: *mut c_void) -> c_int>§writelog: Option<unsafe extern "C" fn(log: *const c_char, kcp: *mut IKCPCB, user: *mut c_void)>

Trait Implementations§

Source§

impl Clone for IKCPCB

Source§

fn clone(&self) -> IKCPCB

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for IKCPCB

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for IKCPCB

Auto Trait Implementations§

§

impl Freeze for IKCPCB

§

impl RefUnwindSafe for IKCPCB

§

impl !Send for IKCPCB

§

impl !Sync for IKCPCB

§

impl Unpin for IKCPCB

§

impl UnwindSafe for IKCPCB

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.