Enum google_api_proto::google::cloud::dataproc::v1::cluster_status::State
source · #[repr(i32)]pub enum State {
Unknown = 0,
Creating = 1,
Running = 2,
Error = 3,
ErrorDueToUpdate = 9,
Deleting = 4,
Updating = 5,
Stopping = 6,
Stopped = 7,
Starting = 8,
Repairing = 10,
}
Expand description
The cluster state.
Variants§
Unknown = 0
The cluster state is unknown.
Creating = 1
The cluster is being created and set up. It is not ready for use.
Running = 2
The cluster is currently running and healthy. It is ready for use.
Note: The cluster state changes from “creating” to “running” status after the master node(s), first two primary worker nodes (and the last primary worker node if primary workers > 2) are running.
Error = 3
The cluster encountered an error. It is not ready for use.
ErrorDueToUpdate = 9
The cluster has encountered an error while being updated. Jobs can be submitted to the cluster, but the cluster cannot be updated.
Deleting = 4
The cluster is being deleted. It cannot be used.
Updating = 5
The cluster is being updated. It continues to accept and process jobs.
Stopping = 6
The cluster is being stopped. It cannot be used.
Stopped = 7
The cluster is currently stopped. It is not ready for use.
Starting = 8
The cluster is being started. It is not ready for use.
Repairing = 10
The cluster is being repaired. It is not ready for use.
Implementations§
source§impl State
impl State
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 Ord for State
impl Ord for State
source§impl PartialEq for State
impl PartialEq for State
source§impl PartialOrd for State
impl PartialOrd for State
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 State
impl TryFrom<i32> for State
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for State
impl Eq for State
impl StructuralPartialEq for State
Auto Trait Implementations§
impl Freeze for State
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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