Enum WriteOutcome
pub enum WriteOutcome {
Complete,
Partial {
written: usize,
source: Error,
},
Unchanged,
}Expand description
Result of a FOTA info write that did not return an error.
Readers, including the bootloader, use the first valid copy of the FOTA info. Once the first copy is written, they see the new state.
Variants§
Complete
The write stored three copies. Readers see the new state.
Partial
The first copy was written, but a later copy failed. Readers see the new state, but fewer copies are left as a backup.
Unchanged
The FOTA info did not change, so nothing was written. Readers see the same state as before.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WriteOutcome
impl !UnwindSafe for WriteOutcome
impl Freeze for WriteOutcome
impl Send for WriteOutcome
impl Sync for WriteOutcome
impl Unpin for WriteOutcome
impl UnsafeUnpin for WriteOutcome
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