#[repr(i32)]pub enum ProtoWorkflowStatus {
Unspecified = 0,
Running = 1,
Completed = 2,
Failed = 3,
Cancelled = 4,
TimedOut = 5,
ContinuedAsNew = 6,
}Expand description
Proto representation of WorkflowStatus. Zero is invalid on decode.
Variants§
Unspecified = 0
Missing/invalid status.
Running = 1
Workflow is not terminal.
Completed = 2
Workflow completed successfully.
Failed = 3
Workflow failed terminally.
Cancelled = 4
Workflow was cancelled.
TimedOut = 5
Workflow timed out.
ContinuedAsNew = 6
Workflow continued as a new run.
Implementations§
Source§impl ProtoWorkflowStatus
impl ProtoWorkflowStatus
Sourcepub fn from_i32(value: i32) -> Option<ProtoWorkflowStatus>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<ProtoWorkflowStatus>
Use the TryFrom<i32> implementation instead
Converts an i32 to a ProtoWorkflowStatus, or None if value is not a valid variant.
Trait Implementations§
Source§impl Clone for ProtoWorkflowStatus
impl Clone for ProtoWorkflowStatus
Source§fn clone(&self) -> ProtoWorkflowStatus
fn clone(&self) -> ProtoWorkflowStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProtoWorkflowStatus
Source§impl Debug for ProtoWorkflowStatus
impl Debug for ProtoWorkflowStatus
Source§impl Default for ProtoWorkflowStatus
impl Default for ProtoWorkflowStatus
Source§fn default() -> ProtoWorkflowStatus
fn default() -> ProtoWorkflowStatus
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProtoWorkflowStatus
impl<'de> Deserialize<'de> for ProtoWorkflowStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ProtoWorkflowStatus
Source§impl From<ProtoWorkflowStatus> for i32
impl From<ProtoWorkflowStatus> for i32
Source§fn from(value: ProtoWorkflowStatus) -> i32
fn from(value: ProtoWorkflowStatus) -> i32
Converts to this type from the input type.
Source§impl From<WorkflowStatus> for ProtoWorkflowStatus
impl From<WorkflowStatus> for ProtoWorkflowStatus
Source§fn from(value: WorkflowStatus) -> Self
fn from(value: WorkflowStatus) -> Self
Converts to this type from the input type.
Source§impl Hash for ProtoWorkflowStatus
impl Hash for ProtoWorkflowStatus
Source§impl PartialEq for ProtoWorkflowStatus
impl PartialEq for ProtoWorkflowStatus
Source§fn eq(&self, other: &ProtoWorkflowStatus) -> bool
fn eq(&self, other: &ProtoWorkflowStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProtoWorkflowStatus
impl Serialize for ProtoWorkflowStatus
impl StructuralPartialEq for ProtoWorkflowStatus
Source§impl TryFrom<ProtoWorkflowStatus> for WorkflowStatus
impl TryFrom<ProtoWorkflowStatus> for WorkflowStatus
Source§impl TryFrom<i32> for ProtoWorkflowStatus
impl TryFrom<i32> for ProtoWorkflowStatus
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<ProtoWorkflowStatus, UnknownEnumValue>
fn try_from(value: i32) -> Result<ProtoWorkflowStatus, UnknownEnumValue>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ProtoWorkflowStatus
impl RefUnwindSafe for ProtoWorkflowStatus
impl Send for ProtoWorkflowStatus
impl Sync for ProtoWorkflowStatus
impl Unpin for ProtoWorkflowStatus
impl UnsafeUnpin for ProtoWorkflowStatus
impl UnwindSafe for ProtoWorkflowStatus
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
Mutably borrows from an owned value. Read more