pub struct TraceId(/* private fields */);Implementations§
Source§impl TraceId
impl TraceId
Sourcepub const fn from_u128(value: u128) -> TraceId
pub const fn from_u128(value: u128) -> TraceId
Examples found in repository?
examples/request_root_contract.rs (line 14)
8fn call(rpc: &str, span: u64, module: &str, service: &str, operation: &str) -> CallContext {
9 CallContext::new(
10 "saddle".into(),
11 module.into(),
12 service.into(),
13 operation.into(),
14 TraceId::from_u128(1),
15 SpanId::from_u64(span),
16 )
17 .with_trace_correlation_id(TraceCorrelationId::new("opaque-gateway-trace").unwrap())
18 .with_rpc_correlation_id(RpcCorrelationId::new(rpc))
19}pub const fn as_u128(self) -> u128
Trait Implementations§
impl Copy for TraceId
impl Eq for TraceId
impl StructuralPartialEq for TraceId
Auto Trait Implementations§
impl Freeze for TraceId
impl RefUnwindSafe for TraceId
impl Send for TraceId
impl Sync for TraceId
impl Unpin for TraceId
impl UnsafeUnpin for TraceId
impl UnwindSafe for TraceId
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