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
impl Archive for InstallError
type Archived = ArchivedInstallError
type Archived = ArchivedInstallError
type Resolver = InstallErrorResolver
type Resolver = InstallErrorResolver
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>, )
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
const COPY_OPTIMIZATION: CopyOptimization<Self> = _
serialize. Read moreimpl Clone for InstallError
impl Clone for InstallError
fn clone(&self) -> InstallError
fn clone(&self) -> InstallError
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more