Type Alias Error
pub type Error = Error;moved to ql-fota, use ql_fota::Error
Expand description
Moved to ql_fota::Error.
Aliased Typeยง
pub enum Error {
Show 15 variants
ChecksumMismatch(&'static str),
ImageChecksumMismatch(&'static str),
FlashedChecksumMismatch(&'static str),
ImageTooLarge(&'static str),
Flash {
partition: &'static str,
source: Error,
},
FotaInfoNotFound,
FotaInfoCrcMismatch {
stored: u32,
calculated: u32,
},
Io(Error),
InvalidFotaBlob(Box<dyn Error + Send + Sync>),
MissingFile(String),
InvalidFotaConfig(Box<dyn Error + Send + Sync>),
UnknownPartition(String),
IncompleteDiff(&'static str),
PartitionMissing(&'static str),
Patch(PatchError),
}Variantsยง
ChecksumMismatch(&'static str)
A partition does not have the checksum that the FOTA config expects.
ImageChecksumMismatch(&'static str)
The new image for a partition does not have the checksum that the FOTA config expects.
FlashedChecksumMismatch(&'static str)
The data read back from a partition after flashing does not have the checksum that the FOTA config expects. The partition contains a bad image.
ImageTooLarge(&'static str)
The image for a partition exceeds its capacity. The partition is unchanged.
Flash
Flashing a partition failed. The partition may contain a partial image.
FotaInfoNotFound
The FOTA info magic is missing from all three blocks.
FotaInfoCrcMismatch
A block contains the FOTA info magic, but its CRC is wrong.
Io(Error)
General IO error.
InvalidFotaBlob(Box<dyn Error + Send + Sync>)
The FOTA blob is not a valid ZIP archive.
MissingFile(String)
The FOTA blob does not contain a file.
InvalidFotaConfig(Box<dyn Error + Send + Sync>)
The config inside the FOTA blob is not valid.
UnknownPartition(String)
The FOTA config specifies an unknown partition.
IncompleteDiff(&'static str)
The FOTA config has a diff update for a partition without the old size, the old checksum or the patch.
PartitionMissing(&'static str)
A partition is not present on the system.
Patch(PatchError)
Patching a partition failed. No partition was updated at this point.