#[repr(i32)]pub enum OperationState {
Unspecified = 0,
Queued = 1,
Running = 2,
Completed = 3,
Failed = 4,
Canceled = 5,
}Expand description
Canonical lifecycle. A terminal operation never changes state, sequence, progress, error, or result. FAILED carries error; CANCELED means a prior cancellation request succeeded and carries no error. COMPLETED carries the result for its kind when that kind defines one.
Variants§
Unspecified = 0
Never valid in a persisted Operation snapshot.
Queued = 1
Accepted durably; may advance to RUNNING or a terminal state.
Running = 2
Work is executing; may advance only to a terminal state.
Completed = 3
Terminal success.
Failed = 4
Terminal failure; Operation.error is required.
Canceled = 5
Terminal confirmation that cancellation succeeded.
Implementations§
Source§impl OperationState
impl OperationState
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 OperationState
impl Clone for OperationState
Source§fn clone(&self) -> OperationState
fn clone(&self) -> OperationState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more