#[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 duplicate 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 moreSource§impl Debug for evthread_lock_callbacks
impl Debug for evthread_lock_callbacks
impl Copy for evthread_lock_callbacks
Auto Trait Implementations§
impl Freeze for evthread_lock_callbacks
impl RefUnwindSafe for evthread_lock_callbacks
impl Send for evthread_lock_callbacks
impl Sync for evthread_lock_callbacks
impl Unpin for evthread_lock_callbacks
impl UnwindSafe for evthread_lock_callbacks
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