拓展自定义事件类型, 增强程序拓展性, 配置保存, 读取逻辑完成.

This commit is contained in:
JIe
2024-12-10 19:54:35 +08:00
parent 7f059c7782
commit 8866fd8b02
4 changed files with 104 additions and 22 deletions

View File

@@ -18,6 +18,16 @@ pub enum DownloadType {
Rail,
}
impl ToString for DownloadType {
fn to_string(&self) -> String {
match self {
DownloadType::Bootloader => "BootLoader".to_string(),
DownloadType::App => "App".to_string(),
DownloadType::Rail => "Rail".to_string(),
}
}
}
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum DownloadError {
JlinkNotFindError,