pub struct Device {
    pub host: Host,
    pub serial: DeviceSerial,
    pub adbd_root: bool,
    pub is_rooted: bool,
    pub su_0_root: bool,
    pub su_c_root: bool,
    pub run_as_package: Option<String>,
    pub storage: AndroidStorage,
    pub tempfile: UnixPathBuf,
}
Expand description

Represents an ADB device.

Fields

host: Host

ADB host that controls this device.

serial: DeviceSerial

Serial number uniquely identifying this ADB device.

adbd_root: bool

adb running as root

is_rooted: bool

Flag for rooted device

su_0_root: bool

“su 0” command available

su_c_root: bool

“su -c” command available

run_as_package: Option<String>storage: AndroidStoragetempfile: UnixPathBuf

Cache intermediate tempfile name used in pushing via run_as.

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.