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

Enum

InstallError

pub enum InstallError {
    NotAnApp,
    InvalidSignature,
    FluxEmulatorMissing,
    BuiltInApp,
    PublisherMismatch,
    AppRunning,
    Compatibility(CompatibilityError),
    Fs(Error),
    Internal,
}
Expand description

Why an install did not happen. Every variant is a state the archive or the device is in, so the caller can say something specific without the server sending it a string.

Variants

NotAnApp

The file is not a readable app archive, or breaks the archive format’s rules.

InvalidSignature

The archive’s manifest carries no valid publisher signature.

FluxEmulatorMissing

A Flux app, which only the Flux emulator can run, and the emulator is not installed.

BuiltInApp

The archive claims the app id of an app that ships with the firmware, which no installed app may replace.

PublisherMismatch

An app with this id is installed, but from another publisher, so this archive would be a different app taking over its permission grants and stored data rather than an update.

AppRunning

The app is already installed and running, so its bundle cannot be replaced.

Compatibility(CompatibilityError)

The manifest is valid but incompatible with this KeyOS release.

Fs(Error)

The filesystem refused an operation the install needed.

Internal

Anything else; the server logs what actually happened.

Trait Implementations

impl Archive for InstallError
where CompatibilityError: Archive, Error: Archive,

type Archived = ArchivedInstallError

The archived representation of this type. Read more

type Resolver = InstallErrorResolver

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 InstallError

fn clone(&self) -> InstallError

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 InstallError

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

Formats the value using the given formatter. Read more

impl<__D: Fallible + ?Sized> Deserialize<InstallError, __D> for Archived<InstallError>
where CompatibilityError: Archive, <CompatibilityError as Archive>::Archived: Deserialize<CompatibilityError, __D>, Error: Archive, <Error as Archive>::Archived: Deserialize<Error, __D>,

fn deserialize( &self, deserializer: &mut __D, ) -> Result<InstallError, <__D as Fallible>::Error>

Deserializes using the given deserializer

impl<__S: Fallible + ?Sized> Serialize<__S> for InstallError
where CompatibilityError: Serialize<__S>, Error: Serialize<__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 InstallError

impl RefUnwindSafe for InstallError

impl Send for InstallError

impl Sync for InstallError

impl Unpin for InstallError

impl UnsafeUnpin for InstallError

impl UnwindSafe for InstallError