Struct libevent_sys::evthread_lock_callbacks
source · #[repr(C)]pub struct evthread_lock_callbacks {
pub lock_api_version: c_int,
pub supported_locktypes: c_uint,
pub alloc: Option<unsafe extern "C" fn(locktype: c_uint) -> *mut c_void>,
pub free: Option<unsafe extern "C" fn(lock: *mut c_void, locktype: c_uint)>,
pub lock: Option<unsafe extern "C" fn(mode: c_uint, lock: *mut c_void) -> c_int>,
pub unlock: Option<unsafe extern "C" fn(mode: c_uint, lock: *mut c_void) -> c_int>,
}
Fields§
§lock_api_version: c_int
§supported_locktypes: c_uint
§alloc: Option<unsafe extern "C" fn(locktype: c_uint) -> *mut c_void>
§free: Option<unsafe extern "C" fn(lock: *mut c_void, locktype: c_uint)>
§lock: Option<unsafe extern "C" fn(mode: c_uint, lock: *mut c_void) -> c_int>
§unlock: Option<unsafe extern "C" fn(mode: c_uint, lock: *mut c_void) -> c_int>
Trait Implementations§
source§impl Clone for evthread_lock_callbacks
impl Clone for evthread_lock_callbacks
source§fn clone(&self) -> evthread_lock_callbacks
fn clone(&self) -> evthread_lock_callbacks
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