[][src]Union alpm_sys_fork::_alpm_event_t

#[repr(C)]
pub union _alpm_event_t {
    pub type_: alpm_event_type_t,
    pub any: alpm_event_any_t,
    pub package_operation: alpm_event_package_operation_t,
    pub optdep_removal: alpm_event_optdep_removal_t,
    pub delta_patch: alpm_event_delta_patch_t,
    pub scriptlet_info: alpm_event_scriptlet_info_t,
    pub database_missing: alpm_event_database_missing_t,
    pub pkgdownload: alpm_event_pkgdownload_t,
    pub pacnew_created: alpm_event_pacnew_created_t,
    pub pacsave_created: alpm_event_pacsave_created_t,
    pub hook: alpm_event_hook_t,
    pub hook_run: alpm_event_hook_run_t,
    // some fields omitted
}

Events. This is an union passed to the callback, that allows the frontend to know which type of event 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 event-specific data.

Fields

type_: alpm_event_type_tany: alpm_event_any_tpackage_operation: alpm_event_package_operation_toptdep_removal: alpm_event_optdep_removal_tdelta_patch: alpm_event_delta_patch_tscriptlet_info: alpm_event_scriptlet_info_tdatabase_missing: alpm_event_database_missing_tpkgdownload: alpm_event_pkgdownload_tpacnew_created: alpm_event_pacnew_created_tpacsave_created: alpm_event_pacsave_created_thook: alpm_event_hook_thook_run: alpm_event_hook_run_t

Trait Implementations

impl Clone for _alpm_event_t[src]

impl Copy for _alpm_event_t[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]