alpm_cb_progress

Type Alias alpm_cb_progress 

Source
pub type alpm_cb_progress = Option<unsafe extern "C" fn(ctx: *mut c_void, progress: alpm_progress_t, pkg: *const c_char, percent: c_int, howmany: usize, current: usize)>;
Expand description

Progress callback

Alert the front end about the progress of certain events. Allows the implementation of loading bars for events that make take a while to complete. @param ctx user-provided context @param progress the kind of event that is progressing @param pkg for package operations, the name of the package being operated on @param percent the percent completion of the action @param howmany the total amount of items in the action @param current the current amount of items completed / /** Progress callback

Aliased Type§

pub enum alpm_cb_progress {
    None,
    Some(unsafe extern "C" fn(*mut c_void, _alpm_progress_t, *const i8, i32, usize, usize)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut c_void, _alpm_progress_t, *const i8, i32, usize, usize))

Some value of type T.