#[repr(C)]
#[derive(Debug, Copy)]
pub struct fi_ops_cq
{
pub size: usize,
pub read: Option<unsafe extern "C" fn(cq: *mut fid_cq, buf: *mut c_void, count: usize) -> isize>,
pub readfrom: Option<unsafe extern "C" fn(cq: *mut fid_cq, buf: *mut c_void, count: usize, src_addr: *mut fi_addr_t) -> isize>,
pub readerr: Option<unsafe extern "C" fn(cq: *mut fid_cq, buf: *mut fi_cq_err_entry, flags: u64) -> isize>,
pub sread: Option<unsafe extern "C" fn(cq: *mut fid_cq, buf: *mut c_void, count: usize, cond: *const c_void, timeout: c_int) -> isize>,
pub sreadfrom: Option<unsafe extern "C" fn(cq: *mut fid_cq, buf: *mut c_void, count: usize, src_addr: *mut fi_addr_t, cond: *const c_void, timeout: c_int) -> isize>,
pub signal: Option<unsafe extern "C" fn(cq: *mut fid_cq) -> c_int>,
pub strerror: Option<unsafe extern "C" fn(cq: *mut fid_cq, prov_errno: c_int, err_data: *const c_void, buf: *mut c_char, len: usize) -> *const c_char>,
}
impl Clone for fi_ops_cq
{
#[inline(always)]
fn clone(&self) -> Self
{
*self
}
}
impl Default for fi_ops_cq
{
#[inline(always)]
fn default() -> Self
{
unsafe { zeroed() }
}
}