Enum
AppEvent
pub enum AppEvent {
AppLaunching {
app_id: AppId,
launched_by: PID,
},
AppLaunched {
app_id: AppId,
pid: PID,
launched_by: PID,
},
AppCrashed {
app_id: AppId,
pid: PID,
launched_by: PID,
exit_code: u32,
panic_message: Option<String>,
},
LaunchError {
app_id: AppId,
error: LaunchError,
launched_by: PID,
},
AppRemoving {
app_id: AppId,
},
AppRemovalFailed {
app_id: AppId,
result: RemoveInstalledAppResult,
},
AppSetChanged {
installed: Vec<AppId>,
removed: Vec<AppId>,
},
AllowedPublishersChanged,
}Variants
AppLaunching
Fields
app_id: AppIdlaunched_by: PIDAppLaunched
Fields
app_id: AppIdpid: PIDlaunched_by: PIDAppCrashed
Fields
app_id: AppIdpid: PIDlaunched_by: PIDexit_code: u32panic_message: Option<String>LaunchError
AppRemoving
Fields
app_id: AppIdAppRemovalFailed
AppSetChanged
A rescan or successful install added, removed, or updated app bundles.
installed: covers both app ids that weren’t in the registry before and app
ids whose bundle changed
removed covers app ids no longer found
Fields
installed: Vec<AppId>removed: Vec<AppId>AllowedPublishersChanged
Trait Implementations
impl Archive for AppEventwhere
WithAppId: ArchiveWith<AppId>,
PID: Archive,
u32: Archive,
Option<String>: Archive,
LaunchError: Archive,
RemoveInstalledAppResult: Archive,
Map<WithAppId>: ArchiveWith<Vec<AppId>>,
impl Archive for AppEventwhere
WithAppId: ArchiveWith<AppId>,
PID: Archive,
u32: Archive,
Option<String>: Archive,
LaunchError: Archive,
RemoveInstalledAppResult: Archive,
Map<WithAppId>: ArchiveWith<Vec<AppId>>,
type Archived = ArchivedAppEvent
type Archived = ArchivedAppEvent
The archived representation of this type. Read more
type Resolver = AppEventResolver
type Resolver = AppEventResolver
The resolver for this type. It must contain all the additional
information from serializing needed to make the archived type from
the normal type.
fn resolve(
&self,
resolver: <Self as Archive>::Resolver,
out: Place<<Self as Archive>::Archived>,
)
fn resolve( &self, resolver: <Self as Archive>::Resolver, out: Place<<Self as Archive>::Archived>, )
Creates the archived version of this value at the given position and
writes it to the given output. Read more
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
An optimization flag that allows the bytes of this type to be copied
directly to a writer instead of calling
serialize. Read moreimpl Clone for AppEvent
impl Clone for AppEvent
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for AppEvent
impl Debug for AppEvent
impl<__D: Fallible + ?Sized> Deserialize<AppEvent, __D> for Archived<AppEvent>where
WithAppId: ArchiveWith<AppId> + DeserializeWith<<WithAppId as ArchiveWith<AppId>>::Archived, AppId, __D>,
PID: Archive,
<PID as Archive>::Archived: Deserialize<PID, __D>,
u32: Archive,
<u32 as Archive>::Archived: Deserialize<u32, __D>,
Option<String>: Archive,
<Option<String> as Archive>::Archived: Deserialize<Option<String>, __D>,
LaunchError: Archive,
<LaunchError as Archive>::Archived: Deserialize<LaunchError, __D>,
RemoveInstalledAppResult: Archive,
<RemoveInstalledAppResult as Archive>::Archived: Deserialize<RemoveInstalledAppResult, __D>,
Map<WithAppId>: ArchiveWith<Vec<AppId>> + DeserializeWith<<Map<WithAppId> as ArchiveWith<Vec<AppId>>>::Archived, Vec<AppId>, __D>,
impl<__D: Fallible + ?Sized> Deserialize<AppEvent, __D> for Archived<AppEvent>where
WithAppId: ArchiveWith<AppId> + DeserializeWith<<WithAppId as ArchiveWith<AppId>>::Archived, AppId, __D>,
PID: Archive,
<PID as Archive>::Archived: Deserialize<PID, __D>,
u32: Archive,
<u32 as Archive>::Archived: Deserialize<u32, __D>,
Option<String>: Archive,
<Option<String> as Archive>::Archived: Deserialize<Option<String>, __D>,
LaunchError: Archive,
<LaunchError as Archive>::Archived: Deserialize<LaunchError, __D>,
RemoveInstalledAppResult: Archive,
<RemoveInstalledAppResult as Archive>::Archived: Deserialize<RemoveInstalledAppResult, __D>,
Map<WithAppId>: ArchiveWith<Vec<AppId>> + DeserializeWith<<Map<WithAppId> as ArchiveWith<Vec<AppId>>>::Archived, Vec<AppId>, __D>,
fn deserialize(
&self,
deserializer: &mut __D,
) -> Result<AppEvent, <__D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut __D, ) -> Result<AppEvent, <__D as Fallible>::Error>
Deserializes using the given deserializer
impl<__S: Fallible + ?Sized> Serialize<__S> for AppEventwhere
WithAppId: SerializeWith<AppId, __S>,
PID: Serialize<__S>,
u32: Serialize<__S>,
Option<String>: Serialize<__S>,
LaunchError: Serialize<__S>,
RemoveInstalledAppResult: Serialize<__S>,
Map<WithAppId>: SerializeWith<Vec<AppId>, __S>,
impl<__S: Fallible + ?Sized> Serialize<__S> for AppEventwhere
WithAppId: SerializeWith<AppId, __S>,
PID: Serialize<__S>,
u32: Serialize<__S>,
Option<String>: Serialize<__S>,
LaunchError: Serialize<__S>,
RemoveInstalledAppResult: Serialize<__S>,
Map<WithAppId>: SerializeWith<Vec<AppId>, __S>,
fn serialize(
&self,
serializer: &mut __S,
) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
Writes the dependencies for the object and returns a resolver that can
create the archived type.