Add firmware protection to the environment
This commit is contained in:
6
src/api/firmware_protection.rs
Normal file
6
src/api/firmware_protection.rs
Normal file
@@ -0,0 +1,6 @@
|
||||
pub trait FirmwareProtection {
|
||||
/// Locks the firmware.
|
||||
///
|
||||
/// Returns whether the operation was successful.
|
||||
fn lock(&mut self) -> bool;
|
||||
}
|
||||
@@ -3,4 +3,5 @@
|
||||
//! The [environment](crate::env::Env) is split into components. Each component has an API described
|
||||
//! by a trait. This module gathers the API of those components.
|
||||
|
||||
pub mod firmware_protection;
|
||||
pub mod upgrade_storage;
|
||||
|
||||
Reference in New Issue
Block a user