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 moreSource§impl Debug for DeviceState
impl Debug for DeviceState
Source§impl Display for DeviceState
impl Display for DeviceState
Auto Trait Implementations§
impl Freeze for DeviceState
impl RefUnwindSafe for DeviceState
impl Send for DeviceState
impl Sync for DeviceState
impl Unpin for DeviceState
impl UnwindSafe for DeviceState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more