Struct enet_sys::_ENetPeer

source ·
#[repr(C)]
pub struct _ENetPeer {
Show 60 fields pub dispatchList: ENetListNode, pub host: *mut _ENetHost, pub outgoingPeerID: enet_uint16, pub incomingPeerID: enet_uint16, pub connectID: enet_uint32, pub outgoingSessionID: enet_uint8, pub incomingSessionID: enet_uint8, pub address: ENetAddress, pub data: *mut c_void, pub state: ENetPeerState, pub channels: *mut ENetChannel, pub channelCount: usize, pub incomingBandwidth: enet_uint32, pub outgoingBandwidth: enet_uint32, pub incomingBandwidthThrottleEpoch: enet_uint32, pub outgoingBandwidthThrottleEpoch: enet_uint32, pub incomingDataTotal: enet_uint32, pub outgoingDataTotal: enet_uint32, pub lastSendTime: enet_uint32, pub lastReceiveTime: enet_uint32, pub nextTimeout: enet_uint32, pub earliestTimeout: enet_uint32, pub packetLossEpoch: enet_uint32, pub packetsSent: enet_uint32, pub packetsLost: enet_uint32, pub packetLoss: enet_uint32, pub packetLossVariance: enet_uint32, pub packetThrottle: enet_uint32, pub packetThrottleLimit: enet_uint32, pub packetThrottleCounter: enet_uint32, pub packetThrottleEpoch: enet_uint32, pub packetThrottleAcceleration: enet_uint32, pub packetThrottleDeceleration: enet_uint32, pub packetThrottleInterval: enet_uint32, pub pingInterval: enet_uint32, pub timeoutLimit: enet_uint32, pub timeoutMinimum: enet_uint32, pub timeoutMaximum: enet_uint32, pub lastRoundTripTime: enet_uint32, pub lowestRoundTripTime: enet_uint32, pub lastRoundTripTimeVariance: enet_uint32, pub highestRoundTripTimeVariance: enet_uint32, pub roundTripTime: enet_uint32, pub roundTripTimeVariance: enet_uint32, pub mtu: enet_uint32, pub windowSize: enet_uint32, pub reliableDataInTransit: enet_uint32, pub outgoingReliableSequenceNumber: enet_uint16, pub acknowledgements: ENetList, pub sentReliableCommands: ENetList, pub outgoingSendReliableCommands: ENetList, pub outgoingCommands: ENetList, pub dispatchedCommands: ENetList, pub flags: enet_uint16, pub reserved: enet_uint16, pub incomingUnsequencedGroup: enet_uint16, pub outgoingUnsequencedGroup: enet_uint16, pub unsequencedWindow: [enet_uint32; 32], pub eventData: enet_uint32, pub totalWaitingData: usize,
}
Expand description

An ENet peer which data packets may be sent or received from.

No fields should be modified unless otherwise specified.

Fields§

§dispatchList: ENetListNode§host: *mut _ENetHost§outgoingPeerID: enet_uint16§incomingPeerID: enet_uint16§connectID: enet_uint32§outgoingSessionID: enet_uint8§incomingSessionID: enet_uint8§address: ENetAddress

< Internet address of the peer

§data: *mut c_void

< Application private data, may be freely modified

§state: ENetPeerState§channels: *mut ENetChannel§channelCount: usize

< Number of channels allocated for communication with peer

§incomingBandwidth: enet_uint32

< Downstream bandwidth of the client in bytes/second

§outgoingBandwidth: enet_uint32

< Upstream bandwidth of the client in bytes/second

§incomingBandwidthThrottleEpoch: enet_uint32§outgoingBandwidthThrottleEpoch: enet_uint32§incomingDataTotal: enet_uint32§outgoingDataTotal: enet_uint32§lastSendTime: enet_uint32§lastReceiveTime: enet_uint32§nextTimeout: enet_uint32§earliestTimeout: enet_uint32§packetLossEpoch: enet_uint32§packetsSent: enet_uint32§packetsLost: enet_uint32§packetLoss: enet_uint32

< mean packet loss of reliable packets as a ratio with respect to the constant ENET_PEER_PACKET_LOSS_SCALE

§packetLossVariance: enet_uint32§packetThrottle: enet_uint32§packetThrottleLimit: enet_uint32§packetThrottleCounter: enet_uint32§packetThrottleEpoch: enet_uint32§packetThrottleAcceleration: enet_uint32§packetThrottleDeceleration: enet_uint32§packetThrottleInterval: enet_uint32§pingInterval: enet_uint32§timeoutLimit: enet_uint32§timeoutMinimum: enet_uint32§timeoutMaximum: enet_uint32§lastRoundTripTime: enet_uint32§lowestRoundTripTime: enet_uint32§lastRoundTripTimeVariance: enet_uint32§highestRoundTripTimeVariance: enet_uint32§roundTripTime: enet_uint32

< mean round trip time (RTT), in milliseconds, between sending a reliable packet and receiving its acknowledgement

§roundTripTimeVariance: enet_uint32§mtu: enet_uint32§windowSize: enet_uint32§reliableDataInTransit: enet_uint32§outgoingReliableSequenceNumber: enet_uint16§acknowledgements: ENetList§sentReliableCommands: ENetList§outgoingSendReliableCommands: ENetList§outgoingCommands: ENetList§dispatchedCommands: ENetList§flags: enet_uint16§reserved: enet_uint16§incomingUnsequencedGroup: enet_uint16§outgoingUnsequencedGroup: enet_uint16§unsequencedWindow: [enet_uint32; 32]§eventData: enet_uint32§totalWaitingData: usize

Trait Implementations§

source§

impl Clone for _ENetPeer

source§

fn clone(&self) -> _ENetPeer

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 Copy for _ENetPeer

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.