pub struct CallContext { /* private fields */ }Expand description
The minimum identity propagated through Service, DB and Observability in V1.
Deadline, cancellation and resource-budget fields are deliberately absent until a version explicitly defines their behavior.
Implementations§
Source§impl CallContext
impl CallContext
pub fn new( application: ApplicationId, module: ModuleId, service: ServiceId, operation: OperationId, trace_id: TraceId, span_id: SpanId, ) -> Self
pub fn application(&self) -> &ApplicationId
pub fn module(&self) -> &ModuleId
pub fn service(&self) -> &ServiceId
pub fn operation(&self) -> &OperationId
pub const fn trace_id(&self) -> TraceId
pub const fn span_id(&self) -> SpanId
Trait Implementations§
Source§impl Clone for CallContext
impl Clone for CallContext
Source§fn clone(&self) -> CallContext
fn clone(&self) -> CallContext
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CallContext
impl Debug for CallContext
impl Eq for CallContext
Source§impl PartialEq for CallContext
impl PartialEq for CallContext
impl StructuralPartialEq for CallContext
Auto Trait Implementations§
impl Freeze for CallContext
impl RefUnwindSafe for CallContext
impl Send for CallContext
impl Sync for CallContext
impl Unpin for CallContext
impl UnsafeUnpin for CallContext
impl UnwindSafe for CallContext
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