Type Alias GSourceOnceFunc

Source
pub type GSourceOnceFunc = Option<unsafe extern "C" fn(user_data: gpointer)>;
Expand description

GSourceOnceFunc: @user_data: data passed to the function, set when the source was created

A source function that is only called once before being removed from the main context automatically.

See: g_idle_add_once(), g_timeout_add_once()

Since: 2.74

Aliased Type§

enum GSourceOnceFunc {
    None,
    Some(unsafe extern "C" fn(*mut c_void)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void))

Some value of type T.