Type Alias enet_sys::ENetCallbacks
source · pub type ENetCallbacks = _ENetCallbacks;
Aliased Type§
struct ENetCallbacks {
pub malloc: Option<unsafe extern "C" fn(_: usize) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(_: *mut c_void)>,
pub no_memory: Option<unsafe extern "C" fn()>,
}
Fields§
§malloc: Option<unsafe extern "C" fn(_: usize) -> *mut c_void>
§free: Option<unsafe extern "C" fn(_: *mut c_void)>
§no_memory: Option<unsafe extern "C" fn()>
Trait Implementations§
source§impl Clone for _ENetCallbacks
impl Clone for _ENetCallbacks
source§fn clone(&self) -> _ENetCallbacks
fn clone(&self) -> _ENetCallbacks
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