Skip to main content

set_current_event

Function set_current_event 

Source
pub fn set_current_event(
    events: &Arc<Mutex<EventState>>,
    event_type: String,
    data: Vec<u8>,
)
Expand description

Populate current so the guest can read the event type/data inside its on_event callback. Called by the runtime immediately before each on_event(callback_id) invocation.