Enum google_api_proto::google::devtools::testing::v1::device_session::SessionState
source · #[repr(i32)]pub enum SessionState {
Unspecified = 0,
Requested = 1,
Pending = 2,
Active = 3,
Expired = 4,
Finished = 5,
Unavailable = 6,
Error = 7,
}
Expand description
The state that the device session resides.
Variants§
Unspecified = 0
Default value. This value is unused.
Requested = 1
Initial state of a session request. The session is being validated for correctness and a device is not yet requested.
Pending = 2
The session has been validated and is in the queue for a device.
Active = 3
The session has been granted and the device is accepting connections.
Expired = 4
The session duration exceeded the device’s reservation time period and timed out automatically.
Finished = 5
The user is finished with the session and it was canceled by the user while the request was still getting allocated or after allocation and during device usage period.
Unable to complete the session because the device was unavailable and it failed to allocate through the scheduler. For example, a device not in the catalog was requested or the request expired in the allocation queue.
Error = 7
Unable to complete the session for an internal reason, such as an infrastructure failure.
Implementations§
source§impl SessionState
impl SessionState
source§impl SessionState
impl SessionState
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 SessionState
impl Clone for SessionState
source§fn clone(&self) -> SessionState
fn clone(&self) -> SessionState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SessionState
impl Debug for SessionState
source§impl Default for SessionState
impl Default for SessionState
source§fn default() -> SessionState
fn default() -> SessionState
source§impl From<SessionState> for i32
impl From<SessionState> for i32
source§fn from(value: SessionState) -> i32
fn from(value: SessionState) -> i32
source§impl Hash for SessionState
impl Hash for SessionState
source§impl Ord for SessionState
impl Ord for SessionState
source§fn cmp(&self, other: &SessionState) -> Ordering
fn cmp(&self, other: &SessionState) -> 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 SessionState
impl PartialEq for SessionState
source§fn eq(&self, other: &SessionState) -> bool
fn eq(&self, other: &SessionState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SessionState
impl PartialOrd for SessionState
source§fn partial_cmp(&self, other: &SessionState) -> Option<Ordering>
fn partial_cmp(&self, other: &SessionState) -> 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 SessionState
impl TryFrom<i32> for SessionState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<SessionState, UnknownEnumValue>
fn try_from(value: i32) -> Result<SessionState, UnknownEnumValue>
impl Copy for SessionState
impl Eq for SessionState
impl StructuralPartialEq for SessionState
Auto Trait Implementations§
impl Freeze for SessionState
impl RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnwindSafe for SessionState
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