pub struct StartedChildWorkflow<WD: WorkflowDefinition> {
pub run_id: String,
/* private fields */
}Expand description
Child workflow in started state.
Fields§
§run_id: StringRun ID of the child workflow
Implementations§
Source§impl<WD: WorkflowDefinition> StartedChildWorkflow<WD>where
WD::Output: TemporalDeserializable + 'static,
impl<WD: WorkflowDefinition> StartedChildWorkflow<WD>where
WD::Output: TemporalDeserializable + 'static,
Sourcepub fn result(
self,
) -> impl CancellableFutureWithReason<Result<WD::Output, ChildWorkflowExecutionError>>
pub fn result( self, ) -> impl CancellableFutureWithReason<Result<WD::Output, ChildWorkflowExecutionError>>
Consumes self and returns a future that deserializes the child workflow result
into WD::Output.
Sourcepub fn signal<S: SignalDefinition<Workflow = WD>>(
&self,
signal: S,
input: S::Input,
) -> impl CancellableFuture<Result<(), ChildWorkflowSignalError>> + 'static
pub fn signal<S: SignalDefinition<Workflow = WD>>( &self, signal: S, input: S::Input, ) -> impl CancellableFuture<Result<(), ChildWorkflowSignalError>> + 'static
Send a typed signal to the child workflow.
Trait Implementations§
Source§impl<WD: WorkflowDefinition> Debug for StartedChildWorkflow<WD>where
PhantomData<WD>: Debug,
impl<WD: WorkflowDefinition> Debug for StartedChildWorkflow<WD>where
PhantomData<WD>: Debug,
Auto Trait Implementations§
impl<WD> Freeze for StartedChildWorkflow<WD>
impl<WD> !RefUnwindSafe for StartedChildWorkflow<WD>
impl<WD> !Send for StartedChildWorkflow<WD>
impl<WD> !Sync for StartedChildWorkflow<WD>
impl<WD> Unpin for StartedChildWorkflow<WD>where
WD: Unpin,
impl<WD> UnsafeUnpin for StartedChildWorkflow<WD>
impl<WD> !UnwindSafe for StartedChildWorkflow<WD>
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> 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