pub struct TraceContextMetadata {
pub trace_id: u64,
pub span_id: u64,
pub parent_span_id: u64,
pub stage_code: u16,
pub flags: u16,
pub body_bytes: u32,
}Fields§
§trace_id: u64§span_id: u64§parent_span_id: u64§stage_code: u16§flags: u16§body_bytes: u32Implementations§
Source§impl TraceContextMetadata
impl TraceContextMetadata
pub fn parse(source: &[u8]) -> Result<Self, NnrpError>
pub fn write(&self, destination: &mut [u8]) -> Result<(), NnrpError>
pub fn to_bytes(&self) -> Result<[u8; 32], NnrpError>
pub fn parse_with_body(source: &[u8]) -> Result<(Self, &[u8]), NnrpError>
pub fn parse_with_body_and_error_context( source: &[u8], ) -> Result<(Self, &[u8]), TraceContextDecodeError>
pub fn to_vec_with_body(&self, body: &[u8]) -> Result<Vec<u8>, NnrpError>
Trait Implementations§
Source§impl Clone for TraceContextMetadata
impl Clone for TraceContextMetadata
Source§fn clone(&self) -> TraceContextMetadata
fn clone(&self) -> TraceContextMetadata
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 moreimpl Copy for TraceContextMetadata
Source§impl Debug for TraceContextMetadata
impl Debug for TraceContextMetadata
impl Eq for TraceContextMetadata
Source§impl PartialEq for TraceContextMetadata
impl PartialEq for TraceContextMetadata
impl StructuralPartialEq for TraceContextMetadata
Auto Trait Implementations§
impl Freeze for TraceContextMetadata
impl RefUnwindSafe for TraceContextMetadata
impl Send for TraceContextMetadata
impl Sync for TraceContextMetadata
impl Unpin for TraceContextMetadata
impl UnsafeUnpin for TraceContextMetadata
impl UnwindSafe for TraceContextMetadata
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