1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// SPDX-FileCopyrightText: 2026 Roman Valls Guimera <brainstorm@nopcode.org>
// SPDX-FileCopyrightText: 2026 Julio Beltran Ortega <jubeormk1@gmail.com>
// SPDX-FileCopyrightText: 2026 pancake <pancake@nopcode.org>
// SPDX-FileCopyrightText: 2026 Anthony Tambasco <anthony.tambasco@fastmail.com>
//
// SPDX-License-Identifier: GPL-3.0-or-later
//! OTA update traits.
//!
//! Flash storage operations should use `embedded_storage_async::nor_flash::NorFlash`
//! from the embedded-hal ecosystem rather than a custom trait.
//!
//! OTA update actions are kept here because they are application-specific
//! (partition management, firmware validation) and not covered by embedded-hal.
use Future;
use crateHalError;
/// OTA update operations.
///
/// # Errors
///
/// All methods return `HalError` on failure.