alarm_callback_t

Type Alias alarm_callback_t 

Source
pub type alarm_callback_t = Option<unsafe extern "C" fn(id: alarm_id_t, user_data: *mut c_void) -> i64>;
Expand description

\brief User alarm callback \ingroup alarm \param id the alarm_id as returned when the alarm was added \param user_data the user data passed when the alarm was added \return <0 to reschedule the same alarm this many us from the time the alarm was previously scheduled to fire \return >0 to reschedule the same alarm this many us from the time this method returns \return 0 to not reschedule the alarm

Aliased Type§

pub enum alarm_callback_t {
    None,
    Some(unsafe extern "C" fn(i32, *mut c_void) -> i64),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(i32, *mut c_void) -> i64)

Some value of type T.