Enum google_api_proto::google::devtools::testing::v1::DeviceCapacity
source · #[repr(i32)]pub enum DeviceCapacity {
Unspecified = 0,
High = 1,
Medium = 2,
Low = 3,
None = 4,
}
Expand description
Capacity based on the number of online devices in the lab.
Important: device capacity does not directly reflect the length of the queue at a moment in time. It does not take into account current traffic or the state of the devices.
For physical devices, the number is the average of online devices in the last 30 days.
Variants§
Unspecified = 0
The value of device capacity is unknown or unset.
High = 1
Devices that are high in capacity (The lab has a large number of these devices).
These devices are generally suggested for running a large number of simultaneous tests (e.g. more than 100 tests).
Please note that high capacity devices do not guarantee short wait times due to several factors:
- Traffic (how heavily they are used at any given moment)
- High capacity devices are prioritized for certain usages, which may cause user tests to be slower than selecting other similar device types.
Medium = 2
Devices that are medium in capacity (The lab has a decent number of these devices, though not as many as high capacity devices).
These devices are suitable for fewer test runs (e.g. fewer than 100 tests) and only for low shard counts (e.g. less than 10 shards).
Low = 3
Devices that are low in capacity (The lab has a small number of these devices).
These devices may be used if users need to test on this specific device model and version. Please note that due to low capacity, the tests may take much longer to finish, especially if a large number of tests are invoked at once. These devices are not suitable for test sharding.
None = 4
Devices that are completely missing from the lab.
These devices are unavailable either temporarily or permanently and should not be requested. If the device is also marked as deprecated, this state is very likely permanent.
Implementations§
source§impl DeviceCapacity
impl DeviceCapacity
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 DeviceCapacity
impl Clone for DeviceCapacity
source§fn clone(&self) -> DeviceCapacity
fn clone(&self) -> DeviceCapacity
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DeviceCapacity
impl Debug for DeviceCapacity
source§impl Default for DeviceCapacity
impl Default for DeviceCapacity
source§fn default() -> DeviceCapacity
fn default() -> DeviceCapacity
source§impl From<DeviceCapacity> for i32
impl From<DeviceCapacity> for i32
source§fn from(value: DeviceCapacity) -> i32
fn from(value: DeviceCapacity) -> i32
source§impl Hash for DeviceCapacity
impl Hash for DeviceCapacity
source§impl Ord for DeviceCapacity
impl Ord for DeviceCapacity
source§fn cmp(&self, other: &DeviceCapacity) -> Ordering
fn cmp(&self, other: &DeviceCapacity) -> 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 DeviceCapacity
impl PartialEq for DeviceCapacity
source§fn eq(&self, other: &DeviceCapacity) -> bool
fn eq(&self, other: &DeviceCapacity) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DeviceCapacity
impl PartialOrd for DeviceCapacity
source§fn partial_cmp(&self, other: &DeviceCapacity) -> Option<Ordering>
fn partial_cmp(&self, other: &DeviceCapacity) -> 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 DeviceCapacity
impl TryFrom<i32> for DeviceCapacity
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<DeviceCapacity, UnknownEnumValue>
fn try_from(value: i32) -> Result<DeviceCapacity, UnknownEnumValue>
impl Copy for DeviceCapacity
impl Eq for DeviceCapacity
impl StructuralPartialEq for DeviceCapacity
Auto Trait Implementations§
impl Freeze for DeviceCapacity
impl RefUnwindSafe for DeviceCapacity
impl Send for DeviceCapacity
impl Sync for DeviceCapacity
impl Unpin for DeviceCapacity
impl UnwindSafe for DeviceCapacity
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