pub struct QueryTaskInterceptorContext { /* private fields */ }Expand description
Read-only context of one query task.
Implementations§
Source§impl QueryTaskInterceptorContext
impl QueryTaskInterceptorContext
pub fn worker_id(&self) -> &str
pub fn task_queue(&self) -> &str
pub fn namespace(&self) -> &str
pub fn query_task_id(&self) -> &str
pub fn attempt(&self) -> u64
pub fn workflow_id(&self) -> Option<&str>
pub fn run_id(&self) -> Option<&str>
pub fn workflow_type(&self) -> &str
pub fn query_name(&self) -> &str
Sourcepub fn observability_context(&self) -> Option<&Value>
pub fn observability_context(&self) -> Option<&Value>
The task’s optional, untrusted observability metadata (trace carrier).
Trait Implementations§
Source§impl Clone for QueryTaskInterceptorContext
impl Clone for QueryTaskInterceptorContext
Source§fn clone(&self) -> QueryTaskInterceptorContext
fn clone(&self) -> QueryTaskInterceptorContext
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 QueryTaskInterceptorContext
impl RefUnwindSafe for QueryTaskInterceptorContext
impl Send for QueryTaskInterceptorContext
impl Sync for QueryTaskInterceptorContext
impl Unpin for QueryTaskInterceptorContext
impl UnwindSafe for QueryTaskInterceptorContext
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