Type Alias ucs_callback_t

Source
pub type ucs_callback_t = Option<unsafe extern "C" fn(arg: *mut c_void) -> c_uint>;
Expand description

Callback which can be placed in a queue.

@param [in] arg User-defined argument for the callback.

@return Count of how much “work” was done by the callback. For example, zero means that no work was done, and any nonzero value means that something was done.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void) -> u32)

Some value of type T.