Type Alias ucp_send_nbx_callback_t

Source
pub type ucp_send_nbx_callback_t = Option<unsafe extern "C" fn(request: *mut c_void, status: ucs_status_t, user_data: *mut c_void)>;
Expand description

@ingroup UCP_COMM @brief Completion callback for non-blocking sends ucp_tag_send_nbx call.

This callback routine is invoked whenever the @ref ucp_tag_send_nbx “send operation” is completed. It is important to note that the call-back is only invoked in a case when the operation cannot be completed in place.

@param [in] request The completed send request. @param [in] status Completion status. If the send operation was completed successfully UCS_OK is returned. If send operation was canceled UCS_ERR_CANCELED is returned. Otherwise, an @ref ucs_status_t “error status” is returned. @param [in] user_data User data passed to “user_data” value, see @ref ucp_request_param_t

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.