nautilus_common::ffi::clock

Function live_clock_set_timer

Source
#[no_mangle]
pub unsafe extern "C" fn live_clock_set_timer(
    clock: &mut LiveClock_API,
    name_ptr: *const c_char,
    interval_ns: u64,
    start_time_ns: UnixNanos,
    stop_time_ns: UnixNanos,
    callback_ptr: *mut PyObject,
)
Expand description

§Safety

  • Assumes name_ptr is a valid C string pointer.
  • Assumes callback_ptr is a valid PyCallable pointer.

§Panics

This function panics:

  • If name is not a valid string.
  • If callback_ptr is NULL and no default callback has been assigned on the clock.