pub struct FlowResult { /* private fields */ }Expand description
Describes an observed Flow status and its output-bearing completions.
Client waits return terminal results. A SubFlow AnyOf loser can return a Running snapshot, which does not guarantee that the independently running Flow remains active at read time.
Implementations§
Source§impl FlowResult
impl FlowResult
Sourcepub fn status(&self) -> FlowStatus
pub fn status(&self) -> FlowStatus
Returns the observed Flow lifecycle state.
Sourcepub fn error_type(&self) -> Option<FlowErrorType>
pub fn error_type(&self) -> Option<FlowErrorType>
Returns the Dex failure category when one was reported.
Sourcepub fn error_message(&self) -> Option<&str>
pub fn error_message(&self) -> Option<&str>
Returns the server failure detail when one was reported.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Returns whether the observed run can no longer execute.
Sourcepub fn completions(&self) -> &[StepCompletion]
pub fn completions(&self) -> &[StepCompletion]
Returns output-bearing completions in server collection order.
Parallel Step order is not deterministic. Select by Step type or Step execution ID.
Sourcepub fn single_output<Output: Value>(&self) -> SdkResult<Output>
pub fn single_output<Output: Value>(&self) -> SdkResult<Output>
Decodes the output when exactly one completion exists.
§Errors
Returns SdkError::InvalidArgument for a nonterminal result or zero or multiple outputs and
SdkError::ValueMapping when the output is incompatible with Output.
Trait Implementations§
Source§impl Clone for FlowResult
impl Clone for FlowResult
Auto Trait Implementations§
impl Freeze for FlowResult
impl RefUnwindSafe for FlowResult
impl Send for FlowResult
impl Sync for FlowResult
impl Unpin for FlowResult
impl UnsafeUnpin for FlowResult
impl UnwindSafe for FlowResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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