test_clock_set_time_alert

Function test_clock_set_time_alert 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn test_clock_set_time_alert( clock: &mut TestClock_API, name_ptr: *const c_char, alert_time_ns: UnixNanos, callback_ptr: *mut PyObject, allow_past: u8, )
Expand description

§Safety

This function assumes:

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

§Panics

Panics if callback_ptr is null or if setting the timer fails.