pub enum WorkflowExecutionResult<T> {
Succeeded(T),
Failed(Failure),
Cancelled(Vec<Payload>),
Terminated(Vec<Payload>),
TimedOut,
ContinuedAsNew,
}
Expand description
Enumerates terminal states for a particular workflow execution
Variants§
Succeeded(T)
The workflow finished successfully
Failed(Failure)
The workflow finished in failure
Cancelled(Vec<Payload>)
The workflow was cancelled
Terminated(Vec<Payload>)
The workflow was terminated
TimedOut
The workflow timed out
ContinuedAsNew
The workflow continued as new
Implementations§
Source§impl<T> WorkflowExecutionResult<T>where
T: Debug,
impl<T> WorkflowExecutionResult<T>where
T: Debug,
Sourcepub fn unwrap_success(self) -> T
pub fn unwrap_success(self) -> T
Unwrap the result, panicking if it was not a success
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for WorkflowExecutionResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for WorkflowExecutionResult<T>where
T: RefUnwindSafe,
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> UnwindSafe for WorkflowExecutionResult<T>where
T: UnwindSafe,
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