pub enum WorkflowExecutionResult<T> {
Succeeded(T),
Failed(IncomingError),
Cancelled {
details: WorkflowResultDetails,
},
Terminated {
details: WorkflowResultDetails,
},
TimedOut,
ContinuedAsNew,
}Expand description
Enumerates terminal states for a particular workflow execution
Variants§
Succeeded(T)
The workflow finished successfully
Failed(IncomingError)
The workflow finished in failure
Cancelled
The workflow was cancelled
Fields
§
details: WorkflowResultDetailsDetails provided at cancellation time
Terminated
The workflow was terminated
Fields
§
details: WorkflowResultDetailsDetails provided at termination time
TimedOut
The workflow timed out
ContinuedAsNew
The workflow continued as new
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for WorkflowExecutionResult<T>
impl<T> !UnwindSafe for WorkflowExecutionResult<T>
impl<T> Freeze for WorkflowExecutionResult<T>where
T: Freeze,
impl<T> Send for WorkflowExecutionResult<T>where
T: Send,
impl<T> Sync for WorkflowExecutionResult<T>where
T: Sync,
impl<T> Unpin for WorkflowExecutionResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for WorkflowExecutionResult<T>where
T: UnsafeUnpin,
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
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>
Wrap the input message
T in a tonic::Request