#[non_exhaustive]pub enum FlowStatus {
Active,
Completed,
Failed,
Cancelled,
Unknown,
}Expand description
Typed flow-lifecycle status surfaced on FlowSummary.
Mirrors the free-form public_flow_state literal that FF’s flow
lifecycle writes onto flow_core (known values: open, running,
blocked, cancelled, completed, failed — see FlowSnapshot).
The three “active” runtime states (open, running, blocked)
collapse to FlowStatus::Active here — callers that need the
exact runtime sub-state should use FlowSnapshot::public_flow_state
via crate::engine_backend::EngineBackend::describe_flow. failed
maps to FlowStatus::Failed.
#[non_exhaustive] so future lifecycle states (if FF introduces
any) can be added without a semver break.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Active
open / running / blocked — flow is still live on the engine.
Completed
Terminal success: all members reached a successful terminal state
and the flow projector flipped public_flow_state to completed.
Failed
Terminal failure: one or more members failed and the flow
projector flipped public_flow_state to failed.
Cancelled
Cancelled by an operator via cancel_flow.
Unknown
The stored public_flow_state literal is present but not a
known value. The raw literal is preserved on
FlowSnapshot::public_flow_state — callers that need to act
on it should fall back to crate::engine_backend::EngineBackend::describe_flow.
Implementations§
Source§impl FlowStatus
impl FlowStatus
Sourcepub fn from_public_flow_state(raw: &str) -> Self
pub fn from_public_flow_state(raw: &str) -> Self
Map the raw public_flow_state literal stored on flow_core
to a typed FlowStatus. Unknown literals surface as
FlowStatus::Unknown so the list surface stays forwards-
compatible with future engine-side state additions.
Trait Implementations§
Source§impl Clone for FlowStatus
impl Clone for FlowStatus
Source§fn clone(&self) -> FlowStatus
fn clone(&self) -> FlowStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more