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<Output = Result<WD::Output, ChildWorkflowExecutionError>>
pub fn result( self, ) -> impl CancellableFutureWithReason<Output = 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> + 'static>(
&self,
signal: S,
input: S::Input,
options: SignalWorkflowOptions,
) -> impl CancellableFuture<Output = Result<(), WorkflowSignalError>> + 'static
pub fn signal<S: SignalDefinition<Workflow = WD> + 'static>( &self, signal: S, input: S::Input, options: SignalWorkflowOptions, ) -> impl CancellableFuture<Output = Result<(), WorkflowSignalError>> + 'static
Send a typed signal to the child workflow.
By default, the signal inherits workflow cancellation.
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> !RefUnwindSafe for StartedChildWorkflow<WD>
impl<WD> !Send for StartedChildWorkflow<WD>
impl<WD> !Sync for StartedChildWorkflow<WD>
impl<WD> !UnwindSafe for StartedChildWorkflow<WD>
impl<WD> Freeze for StartedChildWorkflow<WD>
impl<WD> Unpin for StartedChildWorkflow<WD>where
WD: Unpin,
impl<WD> UnsafeUnpin 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> 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