Enum google_api_proto::google::devtools::testing::v1::status_update::DeviceState
source · #[repr(i32)]pub enum DeviceState {
Unspecified = 0,
Device = 1,
Recovery = 2,
Rescue = 3,
Sideload = 4,
Missing = 10,
Offline = 11,
Unauthorized = 12,
Authorizing = 13,
Connecting = 14,
}
Expand description
The state displayed with the ADB Device when running “adb devices”
Variants§
Unspecified = 0
The device state is unknown.
Device = 1
The ADB device is in the “device” status.
Recovery = 2
The ADB device is in the “recovery” status.
Rescue = 3
The ADB device is in the “rescue” status.
Sideload = 4
The ADB device is in the “sideload” status.
Missing = 10
The ADB device is in the “missing” status.
Offline = 11
The ADB device is in the “offline” status.
The ADB device is in the “unauthorized” status.
Authorizing = 13
The ADB device is in the “authorizing” status.
Connecting = 14
The ADB device is in the “connecting” status.
Implementations§
source§impl DeviceState
impl DeviceState
source§impl DeviceState
impl DeviceState
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
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 Default for DeviceState
impl Default for DeviceState
source§fn default() -> DeviceState
fn default() -> DeviceState
source§impl From<DeviceState> for i32
impl From<DeviceState> for i32
source§fn from(value: DeviceState) -> i32
fn from(value: DeviceState) -> i32
source§impl Hash for DeviceState
impl Hash for DeviceState
source§impl Ord for DeviceState
impl Ord for DeviceState
source§fn cmp(&self, other: &DeviceState) -> Ordering
fn cmp(&self, other: &DeviceState) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for DeviceState
impl PartialEq for DeviceState
source§fn eq(&self, other: &DeviceState) -> bool
fn eq(&self, other: &DeviceState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DeviceState
impl PartialOrd for DeviceState
source§fn partial_cmp(&self, other: &DeviceState) -> Option<Ordering>
fn partial_cmp(&self, other: &DeviceState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for DeviceState
impl TryFrom<i32> for DeviceState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<DeviceState, UnknownEnumValue>
fn try_from(value: i32) -> Result<DeviceState, UnknownEnumValue>
impl Copy for DeviceState
impl Eq for DeviceState
impl StructuralPartialEq 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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request