android_tools/adb/
adb_enum.rs

1#[derive(Debug, Clone, Copy, PartialEq, Eq)]
2pub enum InstallLocation {
3    /// Lets system decide the best location
4    Auto,
5    /// Installs on internal device storage
6    Internal,
7    /// Installs on external media
8    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}