pub type ucp_err_handler_t = ucp_err_handler;Expand description
@ingroup UCP_COMM @brief UCP endpoint error handling context.
This structure should be initialized in @ref ucp_ep_params_t to handle peer failure
Aliased Type§
struct ucp_err_handler_t {
pub cb: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut ucp_ep, _: ucs_status_t)>,
pub arg: *mut c_void,
}Fields§
§cb: Option<unsafe extern "C" fn(_: *mut c_void, _: *mut ucp_ep, _: ucs_status_t)>< Error handler callback, if NULL, will not be called.
arg: *mut c_void< User defined argument associated with an endpoint, it will be overridden by @ref ucp_ep_params_t::user_data if both are set.