File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ pub enum RebootTypeCommand {
8
8
Recovery ,
9
9
Sideload ,
10
10
SideloadAutoReboot ,
11
+ Fastboot ,
11
12
}
12
13
13
14
impl From < RebootTypeCommand > for RebootType {
@@ -18,6 +19,7 @@ impl From<RebootTypeCommand> for RebootType {
18
19
RebootTypeCommand :: Recovery => RebootType :: Recovery ,
19
20
RebootTypeCommand :: Sideload => RebootType :: Sideload ,
20
21
RebootTypeCommand :: SideloadAutoReboot => RebootType :: SideloadAutoReboot ,
22
+ RebootTypeCommand :: Fastboot => RebootType :: Fastboot ,
21
23
}
22
24
}
23
25
}
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ pub enum RebootType {
13
13
Sideload ,
14
14
/// Same as `Sideload` but reboots after sideloading
15
15
SideloadAutoReboot ,
16
+ /// Reboots to fastboot
17
+ Fastboot ,
16
18
}
17
19
18
20
impl Display for RebootType {
@@ -23,6 +25,7 @@ impl Display for RebootType {
23
25
RebootType :: Recovery => write ! ( f, "recovery" ) ,
24
26
RebootType :: Sideload => write ! ( f, "sideload" ) ,
25
27
RebootType :: SideloadAutoReboot => write ! ( f, "sideload-auto-reboot" ) ,
28
+ RebootType :: Fastboot => write ! ( f, "fastboot" ) ,
26
29
}
27
30
}
28
31
}
You can’t perform that action at this time.
0 commit comments