pub enum Refusal {
Show 13 variants
Malformed,
UnsupportedVersion,
Signature,
Digest,
Size,
WrongDevice,
Rollback,
Expired,
NoClock,
SlotTooSmall,
NoSuchSlot,
WrongState,
NothingToRevert,
}Expand description
The reason an update was refused.
Variants§
Malformed
The manifest is not valid CBOR, or ends before its fields do.
UnsupportedVersion
The manifest was written by a newer structure version than this device reads.
Signature
The manifest signature is not from the key this device trusts.
Digest
The image does not match the digest the manifest commits to.
Size
The image is not the size the manifest declares.
WrongDevice
The manifest is for a different vendor or device class.
Rollback
The sequence number is not greater than the one already installed, so this is a replay or a downgrade.
Expired
The manifest’s expiry has passed, so this release is no longer offered.
NoClock
The manifest expires, but this device cannot tell the time, so it has no way to honour that.
SlotTooSmall
The image does not fit the slot it is bound for.
NoSuchSlot
The named slot does not exist on this device.
WrongState
The operation does not apply to the slot’s current state.
NothingToRevert
There is no confirmed image to fall back to.