android_tools/adb/
adb_enum.rs1#[derive(Debug, Clone, Copy, PartialEq, Eq)]
2pub enum InstallLocation {
3 Auto,
5 Internal,
7 External,
9}
10
11#[derive(Debug, Clone, Copy, PartialEq, Eq)]
12pub enum ScreenCompatibilityMode {
13 On,
14 Off,
15}
16
17impl std::fmt::Display for InstallLocation {
18 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
19 match *self {
20 Self::Auto => write!(f, "auto"),
21 Self::Internal => write!(f, "internal"),
22 Self::External => write!(f, "external"),
23 }
24 }
25}
26
27impl std::fmt::Display for ScreenCompatibilityMode {
28 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
29 match *self {
30 Self::On => write!(f, "on"),
31 Self::Off => write!(f, "off"),
32 }
33 }
34}