pub type LaminarSubscriptionCallback = Option<unsafe extern "C" fn(user_data: *mut c_void, batch: *mut LaminarRecordBatch, event_type: i32)>;Expand description
Callback function type for subscription data.
§Arguments
user_data- Opaque pointer passed tolaminar_subscribe_callbackbatch- Record batch (ownership transferred to callback, must free)event_type- One ofLAMINAR_EVENT_*constants
§Safety
The callback must free the batch with laminar_batch_free.
Aliased Type§
pub enum LaminarSubscriptionCallback {
None,
Some(unsafe extern "C" fn(*mut c_void, *mut LaminarRecordBatch, i32)),
}