#[repr(C)]pub struct RawThreadPool {
pub init_fn: Option<unsafe extern "C" fn(*mut c_void, ThreadPoolContext, *const ThreadPoolInfo) -> bool>,
pub run_fn: Option<unsafe extern "C" fn(*mut c_void, ThreadPoolContext, u32, u32, u32)>,
pub wait_fn: Option<unsafe extern "C" fn(*mut c_void, ThreadPoolContext, u32, u32)>,
pub free_fn: Option<unsafe extern "C" fn(*mut c_void, ThreadPoolContext)>,
pub user: *mut c_void,
}Fields§
§init_fn: Option<unsafe extern "C" fn(*mut c_void, ThreadPoolContext, *const ThreadPoolInfo) -> bool>§run_fn: Option<unsafe extern "C" fn(*mut c_void, ThreadPoolContext, u32, u32, u32)>§wait_fn: Option<unsafe extern "C" fn(*mut c_void, ThreadPoolContext, u32, u32)>§free_fn: Option<unsafe extern "C" fn(*mut c_void, ThreadPoolContext)>§user: *mut c_voidTrait Implementations§
Auto Trait Implementations§
impl !Send for RawThreadPool
impl !Sync for RawThreadPool
impl Freeze for RawThreadPool
impl RefUnwindSafe for RawThreadPool
impl Unpin for RawThreadPool
impl UnsafeUnpin for RawThreadPool
impl UnwindSafe for RawThreadPool
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