Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

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: AppId
launched_by: PID

AppLaunched

Fields

app_id: AppId
pid: PID
launched_by: PID

AppCrashed

Fields

app_id: AppId
pid: PID
launched_by: PID
exit_code: u32
panic_message: Option<String>

LaunchError

Fields

app_id: AppId
launched_by: PID

AppRemoving

Fields

app_id: AppId

AppRemovalFailed

Fields

app_id: AppId

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 AppEvent
where WithAppId: ArchiveWith<AppId>, PID: Archive, u32: Archive, Option<String>: Archive, LaunchError: Archive, RemoveInstalledAppResult: Archive, Map<WithAppId>: ArchiveWith<Vec<AppId>>,

type Archived = ArchivedAppEvent

The archived representation of this type. Read more

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>, )

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> = _

An optimization flag that allows the bytes of this type to be copied directly to a writer instead of calling serialize. Read more

impl Clone for AppEvent

fn clone(&self) -> AppEvent

Returns a duplicate of the value. Read more
1.0.0

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for AppEvent

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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>

Deserializes using the given deserializer

impl<__S: Fallible + ?Sized> Serialize<__S> for AppEvent
where 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>

Writes the dependencies for the object and returns a resolver that can create the archived type.

Auto Trait Implementations

impl Freeze for AppEvent

impl RefUnwindSafe for AppEvent

impl Send for AppEvent

impl Sync for AppEvent

impl Unpin for AppEvent

impl UnsafeUnpin for AppEvent

impl UnwindSafe for AppEvent