拓展自定义事件类型, 增强程序拓展性, 配置保存, 读取逻辑完成.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user