Type Alias uct_pack_callback_t

Source
pub type uct_pack_callback_t = Option<unsafe extern "C" fn(dest: *mut c_void, arg: *mut c_void) -> size_t>;
Expand description

@ingroup UCT_RESOURCE @brief Callback for producing data.

@param [in] dest Memory buffer to pack the data to. @param [in] arg Custom user-argument.

@return Size of the data was actually produced.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.