pub struct WorkflowUpdateHandle<CT, T> { /* private fields */ }Expand description
Handle to a workflow update that has been started but may not be complete.
Use get_result() to wait for the update to complete and retrieve its result.
Implementations§
Source§impl<CT, T> WorkflowUpdateHandle<CT, T>
impl<CT, T> WorkflowUpdateHandle<CT, T>
Sourcepub fn workflow_id(&self) -> &str
pub fn workflow_id(&self) -> &str
Get the workflow ID.
Sourcepub fn workflow_run_id(&self) -> Option<&str>
pub fn workflow_run_id(&self) -> Option<&str>
Get the workflow run ID, if available.
Source§impl<CT, T: 'static> WorkflowUpdateHandle<CT, T>
impl<CT, T: 'static> WorkflowUpdateHandle<CT, T>
Sourcepub async fn get_result(&self) -> Result<T, WorkflowUpdateError>where
T: TemporalDeserializable,
pub async fn get_result(&self) -> Result<T, WorkflowUpdateError>where
T: TemporalDeserializable,
Wait for the update to complete and return the result.
Auto Trait Implementations§
impl<CT, T> Freeze for WorkflowUpdateHandle<CT, T>where
CT: Freeze,
impl<CT, T> RefUnwindSafe for WorkflowUpdateHandle<CT, T>where
CT: RefUnwindSafe,
T: RefUnwindSafe,
impl<CT, T> Send for WorkflowUpdateHandle<CT, T>
impl<CT, T> Sync for WorkflowUpdateHandle<CT, T>
impl<CT, T> Unpin for WorkflowUpdateHandle<CT, T>
impl<CT, T> UnsafeUnpin for WorkflowUpdateHandle<CT, T>where
CT: UnsafeUnpin,
impl<CT, T> UnwindSafe for WorkflowUpdateHandle<CT, T>where
CT: UnwindSafe,
T: 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