Type Alias uct_pending_callback_t

Source
pub type uct_pending_callback_t = Option<unsafe extern "C" fn(self_: *mut uct_pending_req_t) -> ucs_status_t>;
Expand description

@ingroup UCT_RESOURCE @brief Callback to process pending requests.

@param [in] self Pointer to relevant pending structure, which was initially passed to the operation.

@return @ref UCS_OK - This pending request has completed and should be removed. @ref UCS_INPROGRESS - Some progress was made, but not completed. Keep this request and keep processing the queue. Otherwise - Could not make any progress. Keep this pending request on the queue, and stop processing the queue.

Aliased Type§

enum uct_pending_callback_t {
    None,
    Some(unsafe extern "C" fn(_: *mut uct_pending_req) -> ucs_status_t),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut uct_pending_req) -> ucs_status_t)

Some value of type T.