pub enum DeviceState {
Show 13 variants
Offline,
Device,
NoDevice,
Authorizing,
Unauthorized,
Connecting,
NoPerm,
Detached,
Bootloader,
Host,
Recovery,
Sideload,
Rescue,
}
Expand description
Represents the connection state of the device.
Variants§
Offline
The device is not connected to adb or is not responding.
Device
The device is now connected to the adb server. Note that this state does not imply that the Android system is fully booted and operational because the device connects to adb while the system is still booting. However, after boot-up, this is the normal operational state of an device.
NoDevice
There is no device connected.
Authorizing
Device is being authorized
The device is unauthorized.
Connecting
Haven’t received a response from the device yet.
NoPerm
Insufficient permissions to communicate with the device.
Detached
USB device detached from the adb server (known but not opened/claimed).
Bootloader
Device running fastboot OS (fastboot) or userspace fastboot (fastbootd).
Host
What a device sees from its end of a Transport (adb host).
Recovery
Device with bootloader loaded but no ROM OS loaded (adbd).
Sideload
Device running Android OS Sideload mode (minadbd sideload mode).
Rescue
Device running Android OS Rescue mode (minadbd rescue mode).
Trait Implementations§
Source§impl Clone for DeviceState
impl Clone for DeviceState
Source§fn clone(&self) -> DeviceState
fn clone(&self) -> DeviceState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more