Enum FotaState
pub enum FotaState {
Succeed,
Update,
Backup,
Failed,
WriteDone,
NeedSync,
Cancel,
UnknownStatus,
}Expand description
Represents the state of FOTA (Firmware Over-The-Air) update.
Variants§
Succeed
Update succeeded and A/B partition is synchronized successfully.
Update
System is updating.
Backup
System updated but A/B partition was not synchronized.
Failed
System update failed.
WriteDone
System update finished, and A/B partition was not synchronized.
NeedSync
System switched, needs to perform A/B synchronization.
Cancel
Update canceled.
UnknownStatus
Unknown status.
Trait Implementations§
impl Copy for FotaState
impl Eq for FotaState
impl StructuralPartialEq for FotaState
Auto Trait Implementations§
impl Freeze for FotaState
impl RefUnwindSafe for FotaState
impl Send for FotaState
impl Sync for FotaState
impl Unpin for FotaState
impl UnwindSafe for FotaState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more