Type Alias enet_sys::ENetEvent

source ·
pub type ENetEvent = _ENetEvent;
Expand description

An ENet event as returned by enet_host_service().

@sa enet_host_service

Aliased Type§

struct ENetEvent {
    pub type_: u32,
    pub peer: *mut _ENetPeer,
    pub channelID: u8,
    pub data: u32,
    pub packet: *mut _ENetPacket,
}

Fields§

§type_: u32

< type of the event

§peer: *mut _ENetPeer

< peer that generated a connect, disconnect or receive event

§channelID: u8

< channel on the peer that generated the event, if appropriate

§data: u32

< data associated with the event, if appropriate

§packet: *mut _ENetPacket

< packet associated with the event, if appropriate

Trait Implementations§

source§

impl Clone for _ENetEvent

source§

fn clone(&self) -> _ENetEvent

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 _ENetEvent