Type Alias GIOSchedulerJobFunc

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

GIOSchedulerJobFunc: @job: a #GIOSchedulerJob. @cancellable: optional #GCancellable object, %NULL to ignore. @data: data passed to the callback function

I/O Job function.

Long-running jobs should periodically check the @cancellable to see if they have been cancelled.

Returns: %TRUE if this function should be called again to complete the job, %FALSE if the job is complete (or cancelled)

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.