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
Source§fn clone(&self) -> ActivityInterceptorContext
fn clone(&self) -> ActivityInterceptorContext
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 ActivityInterceptorContext
impl !RefUnwindSafe for ActivityInterceptorContext
impl Send for ActivityInterceptorContext
impl Sync for ActivityInterceptorContext
impl Unpin for ActivityInterceptorContext
impl !UnwindSafe for ActivityInterceptorContext
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