Type Alias uct_error_handler_t

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

@ingroup UCT_RESOURCE @brief Callback to process peer failure.

@param [in] arg User argument to be passed to the callback. @param [in] ep Endpoint which has failed. 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 Status indicating error.

@return @ref UCS_OK - The error was handled successfully. Otherwise - The error was not handled and is returned back to the transport.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.