Type Alias GFileProgressCallback

Source
pub type GFileProgressCallback = Option<unsafe extern "C" fn(current_num_bytes: goffset, total_num_bytes: goffset, data: gpointer)>;
Expand description

GFileProgressCallback: @current_num_bytes: the current number of bytes in the operation. @total_num_bytes: the total number of bytes in the operation. @data: user data passed to the callback.

When doing file operations that may take a while, such as moving a file or copying a file, a progress callback is used to pass how far along that operation is to the application.

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.