pub enum WfExitValue<T> {
ContinueAsNew(Box<ContinueAsNewWorkflowExecution>),
Cancelled,
Evicted,
Normal(T),
}Expand description
Workflow functions may return these values when exiting
Variants§
ContinueAsNew(Box<ContinueAsNewWorkflowExecution>)
Continue the workflow as a new execution
Cancelled
Confirm the workflow was cancelled (can be automatic in a more advanced iteration)
Evicted
The run was evicted
Normal(T)
Finish with a result
Implementations§
Source§impl<T> WfExitValue<T>
impl<T> WfExitValue<T>
Sourcepub fn continue_as_new(can: ContinueAsNewWorkflowExecution) -> Self
pub fn continue_as_new(can: ContinueAsNewWorkflowExecution) -> Self
Construct a WfExitValue::ContinueAsNew variant (handles boxing)
Trait Implementations§
Source§impl<T: Debug> Debug for WfExitValue<T>
impl<T: Debug> Debug for WfExitValue<T>
Auto Trait Implementations§
impl<T> Freeze for WfExitValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for WfExitValue<T>where
T: RefUnwindSafe,
impl<T> Send for WfExitValue<T>where
T: Send,
impl<T> Sync for WfExitValue<T>where
T: Sync,
impl<T> Unpin for WfExitValue<T>where
T: Unpin,
impl<T> UnwindSafe for WfExitValue<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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