Skip to main content

Error

Type Alias Error 

pub type Error = Error;
๐Ÿ‘ŽDeprecated:

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.

Fields

ยงpartition: &'static str

Name of the partition.

ยงsource: Error

Underlying error.

ยง

FotaInfoNotFound

The FOTA info magic is missing from all three blocks.

ยง

FotaInfoCrcMismatch

A block contains the FOTA info magic, but its CRC is wrong.

Fields

ยงstored: u32

CRC stored in the FOTA info.

ยงcalculated: u32

CRC calculated from the FOTA info.

ยง

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.