pomp_event_cb_t

Type Alias pomp_event_cb_t 

Source
pub type pomp_event_cb_t = Option<unsafe extern "C" fn(ctx: *mut pomp_ctx, event: pomp_event, conn: *mut pomp_conn, msg: *const pomp_msg, userdata: *mut c_void)>;
Expand description

Context event callback prototype. @param ctx : context. @param event : event that occurred. @param conn : connection on which the event occurred. @param msg : received message when event is POMP_EVENT_MSG. @param userdata : user data given in pomp_ctx_new.

Aliased Type§

pub enum pomp_event_cb_t {
    None,
    Some(unsafe extern "C" fn(*mut pomp_ctx, u32, *mut pomp_conn, *const pomp_msg, *mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut pomp_ctx, u32, *mut pomp_conn, *const pomp_msg, *mut c_void))

Some value of type T.