#[repr(C)]pub struct ibv_context_ops {Show 32 fields
pub _compat_query_device: Option<unsafe extern "C" fn(context: *mut ibv_context, device_attr: *mut ibv_device_attr) -> c_int>,
pub _compat_query_port: Option<unsafe extern "C" fn(context: *mut ibv_context, port_num: u8, port_attr: *mut _compat_ibv_port_attr) -> c_int>,
pub _compat_alloc_pd: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_dealloc_pd: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_reg_mr: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_rereg_mr: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_dereg_mr: Option<unsafe extern "C" fn() -> *mut c_void>,
pub alloc_mw: Option<unsafe extern "C" fn(pd: *mut ibv_pd, type_: ibv_mw_type) -> *mut ibv_mw>,
pub bind_mw: Option<unsafe extern "C" fn(qp: *mut ibv_qp, mw: *mut ibv_mw, mw_bind: *mut ibv_mw_bind) -> c_int>,
pub dealloc_mw: Option<unsafe extern "C" fn(mw: *mut ibv_mw) -> c_int>,
pub _compat_create_cq: Option<unsafe extern "C" fn() -> *mut c_void>,
pub poll_cq: Option<unsafe extern "C" fn(cq: *mut ibv_cq, num_entries: c_int, wc: *mut ibv_wc) -> c_int>,
pub req_notify_cq: Option<unsafe extern "C" fn(cq: *mut ibv_cq, solicited_only: c_int) -> c_int>,
pub _compat_cq_event: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_resize_cq: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_destroy_cq: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_create_srq: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_modify_srq: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_query_srq: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_destroy_srq: Option<unsafe extern "C" fn() -> *mut c_void>,
pub post_srq_recv: Option<unsafe extern "C" fn(srq: *mut ibv_srq, recv_wr: *mut ibv_recv_wr, bad_recv_wr: *mut *mut ibv_recv_wr) -> c_int>,
pub _compat_create_qp: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_query_qp: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_modify_qp: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_destroy_qp: Option<unsafe extern "C" fn() -> *mut c_void>,
pub post_send: Option<unsafe extern "C" fn(qp: *mut ibv_qp, wr: *mut ibv_send_wr, bad_wr: *mut *mut ibv_send_wr) -> c_int>,
pub post_recv: Option<unsafe extern "C" fn(qp: *mut ibv_qp, wr: *mut ibv_recv_wr, bad_wr: *mut *mut ibv_recv_wr) -> c_int>,
pub _compat_create_ah: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_destroy_ah: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_attach_mcast: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_detach_mcast: Option<unsafe extern "C" fn() -> *mut c_void>,
pub _compat_async_event: Option<unsafe extern "C" fn() -> *mut c_void>,
}
Fields§
§_compat_query_device: Option<unsafe extern "C" fn(context: *mut ibv_context, device_attr: *mut ibv_device_attr) -> c_int>
§_compat_query_port: Option<unsafe extern "C" fn(context: *mut ibv_context, port_num: u8, port_attr: *mut _compat_ibv_port_attr) -> c_int>
§_compat_alloc_pd: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_dealloc_pd: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_reg_mr: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_rereg_mr: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_dereg_mr: Option<unsafe extern "C" fn() -> *mut c_void>
§alloc_mw: Option<unsafe extern "C" fn(pd: *mut ibv_pd, type_: ibv_mw_type) -> *mut ibv_mw>
§bind_mw: Option<unsafe extern "C" fn(qp: *mut ibv_qp, mw: *mut ibv_mw, mw_bind: *mut ibv_mw_bind) -> c_int>
§dealloc_mw: Option<unsafe extern "C" fn(mw: *mut ibv_mw) -> c_int>
§_compat_create_cq: Option<unsafe extern "C" fn() -> *mut c_void>
§poll_cq: Option<unsafe extern "C" fn(cq: *mut ibv_cq, num_entries: c_int, wc: *mut ibv_wc) -> c_int>
§req_notify_cq: Option<unsafe extern "C" fn(cq: *mut ibv_cq, solicited_only: c_int) -> c_int>
§_compat_cq_event: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_resize_cq: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_destroy_cq: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_create_srq: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_modify_srq: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_query_srq: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_destroy_srq: Option<unsafe extern "C" fn() -> *mut c_void>
§post_srq_recv: Option<unsafe extern "C" fn(srq: *mut ibv_srq, recv_wr: *mut ibv_recv_wr, bad_recv_wr: *mut *mut ibv_recv_wr) -> c_int>
§_compat_create_qp: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_query_qp: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_modify_qp: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_destroy_qp: Option<unsafe extern "C" fn() -> *mut c_void>
§post_send: Option<unsafe extern "C" fn(qp: *mut ibv_qp, wr: *mut ibv_send_wr, bad_wr: *mut *mut ibv_send_wr) -> c_int>
§post_recv: Option<unsafe extern "C" fn(qp: *mut ibv_qp, wr: *mut ibv_recv_wr, bad_wr: *mut *mut ibv_recv_wr) -> c_int>
§_compat_create_ah: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_destroy_ah: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_attach_mcast: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_detach_mcast: Option<unsafe extern "C" fn() -> *mut c_void>
§_compat_async_event: Option<unsafe extern "C" fn() -> *mut c_void>
Trait Implementations§
Source§impl Clone for ibv_context_ops
impl Clone for ibv_context_ops
Source§fn clone(&self) -> ibv_context_ops
fn clone(&self) -> ibv_context_ops
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 moreSource§impl Debug for ibv_context_ops
impl Debug for ibv_context_ops
Source§impl Default for ibv_context_ops
impl Default for ibv_context_ops
Source§fn default() -> ibv_context_ops
fn default() -> ibv_context_ops
Returns the “default value” for a type. Read more
impl Copy for ibv_context_ops
Auto Trait Implementations§
impl Freeze for ibv_context_ops
impl RefUnwindSafe for ibv_context_ops
impl Send for ibv_context_ops
impl Sync for ibv_context_ops
impl Unpin for ibv_context_ops
impl UnwindSafe for ibv_context_ops
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