Enum google_api_proto::google::cloud::aiplatform::v1::JobState
source · #[repr(i32)]pub enum JobState {
Unspecified = 0,
Queued = 1,
Pending = 2,
Running = 3,
Succeeded = 4,
Failed = 5,
Cancelling = 6,
Cancelled = 7,
Paused = 8,
Expired = 9,
Updating = 10,
PartiallySucceeded = 11,
}
Expand description
Describes the state of a job.
Variants§
Unspecified = 0
The job state is unspecified.
Queued = 1
The job has been just created or resumed and processing has not yet begun.
Pending = 2
The service is preparing to run the job.
Running = 3
The job is in progress.
Succeeded = 4
The job completed successfully.
Failed = 5
The job failed.
Cancelling = 6
The job is being cancelled. From this state the job may only go to
either JOB_STATE_SUCCEEDED
, JOB_STATE_FAILED
or JOB_STATE_CANCELLED
.
Cancelled = 7
The job has been cancelled.
Paused = 8
The job has been stopped, and can be resumed.
Expired = 9
The job has expired.
Updating = 10
The job is being updated. Only jobs in the RUNNING
state can be updated.
After updating, the job goes back to the RUNNING
state.
PartiallySucceeded = 11
The job is partially succeeded, some results may be missing due to errors.
Implementations§
source§impl JobState
impl JobState
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 JobState
impl Ord for JobState
source§impl PartialEq for JobState
impl PartialEq for JobState
source§impl PartialOrd for JobState
impl PartialOrd for JobState
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 JobState
impl TryFrom<i32> for JobState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
impl Copy for JobState
impl Eq for JobState
impl StructuralPartialEq for JobState
Auto Trait Implementations§
impl Freeze for JobState
impl RefUnwindSafe for JobState
impl Send for JobState
impl Sync for JobState
impl Unpin for JobState
impl UnwindSafe for JobState
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