pub struct WorkflowHandle<ClientT, ResultT> { /* private fields */ }
Expand description
A workflow handle which can refer to a specific workflow run, or a chain of workflow runs with the same workflow id.
Implementations§
Source§impl<CT, RT> WorkflowHandle<CT, RT>where
CT: RawClientLike<SvcType = InterceptedService<GrpcMetricSvc, ServiceCallInterceptor>> + Clone,
RT: FromPayloadsExt,
impl<CT, RT> WorkflowHandle<CT, RT>where
CT: RawClientLike<SvcType = InterceptedService<GrpcMetricSvc, ServiceCallInterceptor>> + Clone,
RT: FromPayloadsExt,
Sourcepub fn info(&self) -> &WorkflowExecutionInfo
pub fn info(&self) -> &WorkflowExecutionInfo
Get the workflow execution info
Sourcepub async fn get_workflow_result(
&self,
opts: GetWorkflowResultOpts,
) -> Result<WorkflowExecutionResult<RT>, Error>
pub async fn get_workflow_result( &self, opts: GetWorkflowResultOpts, ) -> Result<WorkflowExecutionResult<RT>, Error>
Await the result of the workflow execution
Auto Trait Implementations§
impl<ClientT, ResultT> Freeze for WorkflowHandle<ClientT, ResultT>where
ClientT: Freeze,
impl<ClientT, ResultT> RefUnwindSafe for WorkflowHandle<ClientT, ResultT>where
ClientT: RefUnwindSafe,
ResultT: RefUnwindSafe,
impl<ClientT, ResultT> Send for WorkflowHandle<ClientT, ResultT>
impl<ClientT, ResultT> Sync for WorkflowHandle<ClientT, ResultT>
impl<ClientT, ResultT> Unpin for WorkflowHandle<ClientT, ResultT>
impl<ClientT, ResultT> UnwindSafe for WorkflowHandle<ClientT, ResultT>where
ClientT: UnwindSafe,
ResultT: 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