Enum google_api_proto::google::cloud::edgenetwork::v1::ResourceState
source · #[repr(i32)]pub enum ResourceState {
StateUnknown = 0,
StatePending = 1,
StateProvisioning = 2,
StateRunning = 3,
StateSuspended = 4,
StateDeleting = 5,
}
Expand description
ResourceState describes the state the resource. A normal lifecycle of a new resource being created would be: PENDING -> PROVISIONING -> RUNNING. A normal lifecycle of an existing resource being deleted would be: RUNNING -> DELETING. Any failures during processing will result the resource to be in a SUSPENDED state.
Variants§
StateUnknown = 0
Unspecified state.
StatePending = 1
The resource is being prepared to be applied to the rack.
StateProvisioning = 2
The resource has started being applied to the rack.
StateRunning = 3
The resource has been pushed to the rack.
StateSuspended = 4
The resource failed to push to the rack.
StateDeleting = 5
The resource is under deletion.
Implementations§
source§impl ResourceState
impl ResourceState
source§impl ResourceState
impl ResourceState
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 ResourceState
impl Clone for ResourceState
source§fn clone(&self) -> ResourceState
fn clone(&self) -> ResourceState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResourceState
impl Debug for ResourceState
source§impl Default for ResourceState
impl Default for ResourceState
source§fn default() -> ResourceState
fn default() -> ResourceState
source§impl From<ResourceState> for i32
impl From<ResourceState> for i32
source§fn from(value: ResourceState) -> i32
fn from(value: ResourceState) -> i32
source§impl Hash for ResourceState
impl Hash for ResourceState
source§impl Ord for ResourceState
impl Ord for ResourceState
source§fn cmp(&self, other: &ResourceState) -> Ordering
fn cmp(&self, other: &ResourceState) -> 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 ResourceState
impl PartialEq for ResourceState
source§fn eq(&self, other: &ResourceState) -> bool
fn eq(&self, other: &ResourceState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ResourceState
impl PartialOrd for ResourceState
source§fn partial_cmp(&self, other: &ResourceState) -> Option<Ordering>
fn partial_cmp(&self, other: &ResourceState) -> 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 ResourceState
impl TryFrom<i32> for ResourceState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<ResourceState, UnknownEnumValue>
fn try_from(value: i32) -> Result<ResourceState, UnknownEnumValue>
impl Copy for ResourceState
impl Eq for ResourceState
impl StructuralPartialEq for ResourceState
Auto Trait Implementations§
impl Freeze for ResourceState
impl RefUnwindSafe for ResourceState
impl Send for ResourceState
impl Sync for ResourceState
impl Unpin for ResourceState
impl UnwindSafe for ResourceState
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