pub struct ActivityInterceptorContext { /* private fields */ }Expand description
Context of one activity attempt; owns the arguments passed down the chain.
Implementations§
Source§impl ActivityInterceptorContext
impl ActivityInterceptorContext
pub fn worker_id(&self) -> &str
pub fn task_queue(&self) -> &str
pub fn namespace(&self) -> &str
pub fn task_id(&self) -> &str
pub fn activity_attempt_id(&self) -> &str
pub fn activity_type(&self) -> &str
pub fn attempt(&self) -> u64
pub fn workflow_id(&self) -> Option<&str>
pub fn run_id(&self) -> Option<&str>
Sourcepub fn is_local(&self) -> bool
pub fn is_local(&self) -> bool
Whether this is an inline local activity run by a workflow task.
Sourcepub fn activity_context(&self) -> &ActivityContext
pub fn activity_context(&self) -> &ActivityContext
The ActivityContext the activity handler will receive.
Trait Implementations§
Source§impl Clone for ActivityInterceptorContext
impl Clone for ActivityInterceptorContext
Auto Trait Implementations§
impl !RefUnwindSafe for ActivityInterceptorContext
impl !UnwindSafe for ActivityInterceptorContext
impl Forget for ActivityInterceptorContext
impl Freeze for ActivityInterceptorContextwhere
*const ArcInner<dyn MetricsRecorder> is !null: Freeze,
PhantomData<ArcInner<dyn MetricsRecorder>>: Freeze,
*const ArcInner<ClientRef> is !null: Freeze,
PhantomData<ArcInner<ClientRef>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const ArcInner<Atomic<bool>> is !null: Freeze,
PhantomData<ArcInner<Atomic<bool>>>: Freeze,
*const ArcInner<TaskSlotMarker> is !null: Freeze,
PhantomData<ArcInner<TaskSlotMarker>>: Freeze,
*const ArcInner<ParkedTask> is !null: Freeze,
PhantomData<ArcInner<ParkedTask>>: Freeze,
*const ArcInner<Mutex<HashMap<String, Arc<Atomic<bool>>>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<HashMap<String, Arc<Atomic<bool>>>>>>: Freeze,
*const ArcInner<Mutex<StickyWorkflowCache>> is !null: Freeze,
PhantomData<ArcInner<Mutex<StickyWorkflowCache>>>: Freeze,
*const ArcInner<Mutex<[Option<(Instant, Policy)>; 2]>> is !null: Freeze,
PhantomData<ArcInner<Mutex<[Option<(Instant, Policy)>; 2]>>>: Freeze,
*const ArcInner<Atomic<usize>> is !null: Freeze,
PhantomData<ArcInner<Atomic<usize>>>: Freeze,
*const ArcInner<Discovery> is !null: Freeze,
PhantomData<ArcInner<Discovery>>: Freeze,
*const ArcInner<Authority> is !null: Freeze,
PhantomData<ArcInner<Authority>>: Freeze,
*const ArcInner<Mutex<Option<Pair>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Option<Pair>>>>: Freeze,
*const ArcInner<Advice> is !null: Freeze,
PhantomData<ArcInner<Advice>>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
*const ArcInner<Mutex<Option<Value>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Option<Value>>>>: Freeze,
*const ArcInner<Mutex<Heartbeats>> is !null: Freeze,
PhantomData<ArcInner<Mutex<Heartbeats>>>: Freeze,
PhantomData<String>: Freeze,
*const ArcInner<Mutex<SessionState>> is !null: Freeze,
PhantomData<ArcInner<Mutex<SessionState>>>: Freeze,
*const ArcInner<Mutex<()>> is !null: Freeze,
PhantomData<ArcInner<Mutex<()>>>: Freeze,
PhantomData<AvroValue>: Freeze,
*const LeafNode<String, AvroValue> is !null: Freeze,
PhantomData<Box<(String, AvroValue)>>: Freeze,
impl Move for ActivityInterceptorContext
impl Send for ActivityInterceptorContextwhere
Arc<dyn MetricsRecorder>: Send,
Arc<ClientRef>: Send,
RawVecInner: Send,
Arc<Atomic<bool>>: Send,
Arc<TaskSlotMarker>: Send,
Arc<ParkedTask>: Send,
Arc<Mutex<HashMap<String, Arc<Atomic<bool>>>>>: Send,
Arc<Mutex<StickyWorkflowCache>>: Send,
Arc<Mutex<[Option<(Instant, Policy)>; 2]>>: Send,
Arc<Atomic<usize>>: Send,
Arc<Discovery>: Send,
Arc<Authority>: Send,
Arc<Mutex<Option<Pair>>>: Send,
Arc<Advice>: Send,
NodeRef<Owned, String, Value, LeafOrInternal>: Send,
BoxRaw<(String, Value)>: Send,
NonZero<i32>: Send,
Utc: Send,
Arc<Mutex<Option<Value>>>: Send,
Arc<Mutex<Heartbeats>>: Send,
Arc<Mutex<SessionState>>: Send,
Arc<Mutex<()>>: Send,
NodeRef<Owned, String, AvroValue, LeafOrInternal>: Send,
BoxRaw<(String, AvroValue)>: Send,
impl Sync for ActivityInterceptorContextwhere
Arc<dyn MetricsRecorder>: Sync,
Arc<ClientRef>: Sync,
RawVecInner: Sync,
Arc<Atomic<bool>>: Sync,
Arc<TaskSlotMarker>: Sync,
Arc<ParkedTask>: Sync,
Arc<Mutex<HashMap<String, Arc<Atomic<bool>>>>>: Sync,
Arc<Mutex<StickyWorkflowCache>>: Sync,
Arc<Mutex<[Option<(Instant, Policy)>; 2]>>: Sync,
Arc<Atomic<usize>>: Sync,
Arc<Discovery>: Sync,
Arc<Authority>: Sync,
Arc<Mutex<Option<Pair>>>: Sync,
Arc<Advice>: Sync,
NodeRef<Owned, String, Value, LeafOrInternal>: Sync,
BoxRaw<(String, Value)>: Sync,
NonZero<i32>: Sync,
Utc: Sync,
Arc<Mutex<Option<Value>>>: Sync,
Arc<Mutex<Heartbeats>>: Sync,
Arc<Mutex<SessionState>>: Sync,
Arc<Mutex<()>>: Sync,
NodeRef<Owned, String, AvroValue, LeafOrInternal>: Sync,
BoxRaw<(String, AvroValue)>: Sync,
impl Unpin for ActivityInterceptorContextwhere
Arc<dyn MetricsRecorder>: Unpin,
Arc<ClientRef>: Unpin,
*const u8 is !null: Unpin,
Arc<Atomic<bool>>: Unpin,
Arc<TaskSlotMarker>: Unpin,
Arc<ParkedTask>: Unpin,
Arc<Mutex<HashMap<String, Arc<Atomic<bool>>>>>: Unpin,
Arc<Mutex<StickyWorkflowCache>>: Unpin,
Arc<Mutex<[Option<(Instant, Policy)>; 2]>>: Unpin,
Arc<Atomic<usize>>: Unpin,
Arc<Discovery>: Unpin,
Arc<Authority>: Unpin,
Arc<Mutex<Option<Pair>>>: Unpin,
Arc<Advice>: Unpin,
*const LeafNode<String, Value> is !null: Unpin,
Box<(String, Value)>: Unpin,
NonZero<i32>: Unpin,
Utc: Unpin,
Arc<Mutex<Option<Value>>>: Unpin,
Arc<Mutex<Heartbeats>>: Unpin,
Arc<Mutex<SessionState>>: Unpin,
Arc<Mutex<()>>: Unpin,
*const LeafNode<String, AvroValue> is !null: Unpin,
Box<(String, AvroValue)>: Unpin,
impl UnsafeUnpin for ActivityInterceptorContextwhere
*const ArcInner<dyn MetricsRecorder> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn MetricsRecorder>>: UnsafeUnpin,
*const ArcInner<ClientRef> is !null: UnsafeUnpin,
PhantomData<ArcInner<ClientRef>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const ArcInner<TaskSlotMarker> is !null: UnsafeUnpin,
PhantomData<ArcInner<TaskSlotMarker>>: UnsafeUnpin,
*const ArcInner<ParkedTask> is !null: UnsafeUnpin,
PhantomData<ArcInner<ParkedTask>>: UnsafeUnpin,
*const ArcInner<Mutex<HashMap<String, Arc<Atomic<bool>>>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<HashMap<String, Arc<Atomic<bool>>>>>>: UnsafeUnpin,
*const ArcInner<Mutex<StickyWorkflowCache>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<StickyWorkflowCache>>>: UnsafeUnpin,
*const ArcInner<Mutex<[Option<(Instant, Policy)>; 2]>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<[Option<(Instant, Policy)>; 2]>>>: UnsafeUnpin,
*const ArcInner<Atomic<usize>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<usize>>>: UnsafeUnpin,
*const ArcInner<Discovery> is !null: UnsafeUnpin,
PhantomData<ArcInner<Discovery>>: UnsafeUnpin,
*const ArcInner<Authority> is !null: UnsafeUnpin,
PhantomData<ArcInner<Authority>>: UnsafeUnpin,
*const ArcInner<Mutex<Option<Pair>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<Pair>>>>: UnsafeUnpin,
*const ArcInner<Advice> is !null: UnsafeUnpin,
PhantomData<ArcInner<Advice>>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
*const ArcInner<Mutex<Option<Value>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Option<Value>>>>: UnsafeUnpin,
*const ArcInner<Mutex<Heartbeats>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Heartbeats>>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ArcInner<Mutex<SessionState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<SessionState>>>: UnsafeUnpin,
*const ArcInner<Mutex<()>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<()>>>: UnsafeUnpin,
PhantomData<AvroValue>: UnsafeUnpin,
*const LeafNode<String, AvroValue> is !null: UnsafeUnpin,
PhantomData<Box<(String, AvroValue)>>: UnsafeUnpin,
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