Type Alias ucp_err_handler_cb_t

Source
pub type ucp_err_handler_cb_t = Option<unsafe extern "C" fn(arg: *mut c_void, ep: ucp_ep_h, status: ucs_status_t)>;
Expand description

@ingroup UCP_COMM @brief Callback to process peer failure.

This callback routine is invoked when transport level error detected.

@param [in] arg User argument to be passed to the callback. @param [in] ep Endpoint to handle transport level error. Upon return from the callback, this @a ep is no longer usable and all subsequent operations on this @a ep will fail with the error code passed in @a status. @param [in] status @ref ucs_status_t “error status”.

Aliased Type§

enum ucp_err_handler_cb_t {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *mut ucp_ep, _: ucs_status_t)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: *mut ucp_ep, _: ucs_status_t))

Some value of type T.