pub struct SpanLink<T>where
T: SpanText,{
pub trace_id: u64,
pub trace_id_high: u64,
pub span_id: u64,
pub attributes: HashMap<T, T>,
pub tracestate: T,
pub flags: u32,
}Expand description
The generic representation of a V04 span link.
T is the type used to represent strings in the span link.
Fields§
§trace_id: u64§trace_id_high: u64§span_id: u64§attributes: HashMap<T, T>§tracestate: T§flags: u32Implementations§
Source§impl SpanLink<&str>
impl SpanLink<&str>
Sourcepub fn try_to_bytes(&self, bytes: &Bytes) -> Option<SpanLinkBytes>
pub fn try_to_bytes(&self, bytes: &Bytes) -> Option<SpanLinkBytes>
Converts a borrowed SpanLinkSlice into an owned SpanLinkBytes, using the provided
Bytes buffer to resolve all referenced strings. Returns None if conversion fails due
to invalid slice ranges.
Trait Implementations§
impl<T> StructuralPartialEq for SpanLink<T>where
T: SpanText,
Auto Trait Implementations§
impl<T> Freeze for SpanLink<T>where
T: Freeze,
impl<T> RefUnwindSafe for SpanLink<T>where
T: RefUnwindSafe,
impl<T> Send for SpanLink<T>where
T: Send,
impl<T> Sync for SpanLink<T>where
T: Sync,
impl<T> Unpin for SpanLink<T>where
T: Unpin,
impl<T> UnwindSafe for SpanLink<T>where
T: UnwindSafe,
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