pub struct CooperativeWorkflowTask { /* private fields */ }Expand description
One actual protocol 1.20 claim and its original pending observation.
The claim is read-only. Observing a request does not deliver cancellation to workflow code. Canonical history and a committed delivery are still required.
Implementations§
Source§impl CooperativeWorkflowTask
impl CooperativeWorkflowTask
pub fn task(&self) -> &WorkflowTask
pub fn cancellation_request(&self) -> Option<&CancellationRequest>
Sourcepub async fn heartbeat(
&mut self,
client: &Client,
) -> Result<WorkflowTaskHeartbeat>
pub async fn heartbeat( &mut self, client: &Client, ) -> Result<WorkflowTaskHeartbeat>
Renew this exact claim and retain the first observation’s identity/token.
A refused or malformed renewal leaves the claim and observation intact.
Trait Implementations§
Source§impl Clone for CooperativeWorkflowTask
impl Clone for CooperativeWorkflowTask
Source§fn clone(&self) -> CooperativeWorkflowTask
fn clone(&self) -> CooperativeWorkflowTask
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CooperativeWorkflowTask
impl RefUnwindSafe for CooperativeWorkflowTask
impl Send for CooperativeWorkflowTask
impl Sync for CooperativeWorkflowTask
impl Unpin for CooperativeWorkflowTask
impl UnwindSafe for CooperativeWorkflowTask
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