Type Alias enet_sys::ENetPacket
source · pub type ENetPacket = _ENetPacket;
Aliased Type§
struct ENetPacket {
pub referenceCount: usize,
pub flags: u32,
pub data: *mut u8,
pub dataLength: usize,
pub freeCallback: Option<unsafe extern "C" fn(_: *mut _ENetPacket)>,
pub userData: *mut c_void,
}
Fields§
§referenceCount: usize
< internal use only
flags: u32
< bitwise-or of ENetPacketFlag constants
data: *mut u8
< allocated data for packet
dataLength: usize
< length of data
freeCallback: Option<unsafe extern "C" fn(_: *mut _ENetPacket)>
< function to be called when the packet is no longer in use
userData: *mut c_void
< application private data, may be freely modified
Trait Implementations§
source§impl Clone for _ENetPacket
impl Clone for _ENetPacket
source§fn clone(&self) -> _ENetPacket
fn clone(&self) -> _ENetPacket
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 more