Skip to main content

LaminarSubscriptionCallback

Type Alias LaminarSubscriptionCallback 

Source
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 to laminar_subscribe_callback
  • batch - Record batch (ownership transferred to callback, must free)
  • event_type - One of LAMINAR_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)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, *mut LaminarRecordBatch, i32))

Some value of type T.