pub struct StartedChildWorkflow<WD>where
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> StartedChildWorkflow<WD>
impl<WD> StartedChildWorkflow<WD>
Sourcepub fn result(
self,
) -> impl CancellableFutureWithReason<Result<<WD as WorkflowDefinition>::Output, ChildWorkflowExecutionError>>
pub fn result( self, ) -> impl CancellableFutureWithReason<Result<<WD as WorkflowDefinition>::Output, ChildWorkflowExecutionError>>
Consumes self and returns a future that deserializes the child workflow result
into WD::Output.
Sourcepub fn signal<S>(
&self,
signal: S,
input: <S as SignalDefinition>::Input,
) -> impl CancellableFuture<Result<(), WorkflowSignalError>> + 'staticwhere
S: SignalDefinition<Workflow = WD>,
pub fn signal<S>(
&self,
signal: S,
input: <S as SignalDefinition>::Input,
) -> impl CancellableFuture<Result<(), WorkflowSignalError>> + 'staticwhere
S: SignalDefinition<Workflow = WD>,
Send a typed signal to the child workflow.
Trait Implementations§
Source§impl<WD> Debug for StartedChildWorkflow<WD>
impl<WD> Debug for StartedChildWorkflow<WD>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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