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
Auto Trait Implementations§
impl Forget for CooperativeWorkflowTask
impl Freeze for CooperativeWorkflowTaskwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<HistoryEvent>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
*const LeafNode<String, String> is !null: Freeze,
PhantomData<Box<(String, String)>>: Freeze,
PhantomData<CancellationLineage>: Freeze,
*const ScopedCancellationContext is !null: Freeze,
PhantomData<ScopedCancellationContext>: Freeze,
*const ArcInner<Mutex<WorkflowState>> is !null: Freeze,
PhantomData<(Reference, String)>: Freeze,
impl Move for CooperativeWorkflowTask
impl RefUnwindSafe for CooperativeWorkflowTaskwhere
NonZero<i32>: RefUnwindSafe,
Utc: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
Mutex<WorkflowState>: RefUnwindSafe,
impl Send for CooperativeWorkflowTaskwhere
RawVecInner: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
RawTable<(String, Value)>: Send,
NonZero<i32>: Send,
Utc: Send,
NodeRef<Owned, String, String, LeafOrInternal>: Send,
BoxRaw<(String, String)>: Send,
BoxRaw<ScopedCancellationContext>: Send,
Weak<Mutex<WorkflowState>>: Send,
RawTable<(Reference, String)>: Send,
impl Sync for CooperativeWorkflowTaskwhere
RawVecInner: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
RawTable<(String, Value)>: Sync,
NonZero<i32>: Sync,
Utc: Sync,
NodeRef<Owned, String, String, LeafOrInternal>: Sync,
BoxRaw<(String, String)>: Sync,
BoxRaw<ScopedCancellationContext>: Sync,
Weak<Mutex<WorkflowState>>: Sync,
RawTable<(Reference, String)>: Sync,
impl Unpin for CooperativeWorkflowTaskwhere
*const u8 is !null: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
NonZero<i32>: Unpin,
Utc: Unpin,
*const LeafNode<String, String> is !null: Unpin,
Box<(String, String)>: Unpin,
Box<ScopedCancellationContext>: Unpin,
*const ArcInner<Mutex<WorkflowState>> is !null: Unpin,
impl UnsafeUnpin for CooperativeWorkflowTaskwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<HistoryEvent>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
*const LeafNode<String, String> is !null: UnsafeUnpin,
PhantomData<Box<(String, String)>>: UnsafeUnpin,
PhantomData<CancellationLineage>: UnsafeUnpin,
*const ScopedCancellationContext is !null: UnsafeUnpin,
PhantomData<ScopedCancellationContext>: UnsafeUnpin,
*const ArcInner<Mutex<WorkflowState>> is !null: UnsafeUnpin,
PhantomData<(Reference, String)>: UnsafeUnpin,
impl UnwindSafe for CooperativeWorkflowTaskwhere
RawVecInner: UnwindSafe,
BTreeMap<String, Value>: UnwindSafe,
HashMap<String, Value>: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
BTreeMap<String, String>: UnwindSafe,
BoxRaw<ScopedCancellationContext>: UnwindSafe,
NonNull<ArcInner<Mutex<WorkflowState>>>: UnwindSafe,
HashMap<Reference, String>: 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