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
Auto Trait Implementations§
impl Forget for QueryTaskInterceptorContext
impl Freeze for QueryTaskInterceptorContextwhere
*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,
impl Move for QueryTaskInterceptorContext
impl RefUnwindSafe for QueryTaskInterceptorContext
impl Send for QueryTaskInterceptorContext
impl Sync for QueryTaskInterceptorContext
impl Unpin for QueryTaskInterceptorContext
impl UnsafeUnpin for QueryTaskInterceptorContextwhere
*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,
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