#[unsafe(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,
allow_past: u8,
fire_immediately: u8,
)Expand description
§Safety
This function assumes:
name_ptris a valid C string pointer.callback_ptris a validPyCallablepointer.
§Parameters
start_time_ns: UNIX timestamp in nanoseconds. Use0to indicate “use current time”.stop_time_ns: UNIX timestamp in nanoseconds. Use0to indicate “no stop time”.
§Panics
This function panics if:
nameis not a valid string.callback_ptris NULL and no default callback has been assigned on the clock.