Struct enet_sys::_ENetEvent
source · #[repr(C)]pub struct _ENetEvent {
pub type_: ENetEventType,
pub peer: *mut ENetPeer,
pub channelID: enet_uint8,
pub data: enet_uint32,
pub packet: *mut ENetPacket,
}
Expand description
An ENet event as returned by enet_host_service().
@sa enet_host_service
Fields§
§type_: ENetEventType
< type of the event
peer: *mut ENetPeer
< peer that generated a connect, disconnect or receive event
channelID: enet_uint8
< channel on the peer that generated the event, if appropriate
data: enet_uint32
< data associated with the event, if appropriate
packet: *mut ENetPacket
< packet associated with the event, if appropriate
Trait Implementations§
source§impl Clone for _ENetEvent
impl Clone for _ENetEvent
source§fn clone(&self) -> _ENetEvent
fn clone(&self) -> _ENetEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for _ENetEvent
Auto Trait Implementations§
impl RefUnwindSafe for _ENetEvent
impl !Send for _ENetEvent
impl !Sync for _ENetEvent
impl Unpin for _ENetEvent
impl UnwindSafe for _ENetEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more