Type Alias GCancellableSourceFunc

Source
pub type GCancellableSourceFunc = Option<unsafe extern "C" fn(cancellable: *mut GCancellable, data: gpointer) -> gboolean>;
Expand description

GCancellableSourceFunc: @cancellable: the #GCancellable @data: data passed in by the user.

This is the function type of the callback used for the #GSource returned by g_cancellable_source_new().

Returns: it should return %FALSE if the source should be removed.

Since: 2.28

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.