Type Alias alpm_sys::alpm_question_t

source ·
pub type alpm_question_t = _alpm_question_t;
Expand description

Questions. This is an union passed to the callback that allows the frontend to know which type of question was triggered (via type). It is then possible to typecast the pointer to the right structure, or use the union field, in order to access question-specific data.

Aliased Type§

union alpm_question_t {
    pub type_: u32,
    pub any: _alpm_question_any_t,
    pub install_ignorepkg: _alpm_question_install_ignorepkg_t,
    pub replace: _alpm_question_replace_t,
    pub conflict: _alpm_question_conflict_t,
    pub corrupted: _alpm_question_corrupted_t,
    pub remove_pkgs: _alpm_question_remove_pkgs_t,
    pub select_provider: _alpm_question_select_provider_t,
    pub import_key: _alpm_question_import_key_t,
}

Fields§

§type_: u32

The type of question. It’s always safe to access this.

§any: _alpm_question_any_t

A question that can represent any question. It’s always safe to access this.

§install_ignorepkg: _alpm_question_install_ignorepkg_t

Should target in ignorepkg be installed anyway?

§replace: _alpm_question_replace_t

Should a package be replaced?

§conflict: _alpm_question_conflict_t

Should a conflicting package be removed?

§corrupted: _alpm_question_corrupted_t

Should a corrupted package be deleted?

§remove_pkgs: _alpm_question_remove_pkgs_t

Should unresolvable targets be removed from the transaction?

§select_provider: _alpm_question_select_provider_t

Provider selection

§import_key: _alpm_question_import_key_t

Should a key be imported?