pub type SpanLinkSlice<'a> = SpanLink<&'a str>;Aliased Type§
pub struct SpanLinkSlice<'a> {
pub trace_id: u64,
pub trace_id_high: u64,
pub span_id: u64,
pub attributes: HashMap<&'a str, &'a str>,
pub tracestate: &'a str,
pub flags: u32,
}Fields§
§trace_id: u64§trace_id_high: u64§span_id: u64§attributes: HashMap<&'a str, &'a str>§tracestate: &'a str§flags: u32Implementations§
Source§impl SpanLinkSlice<'_>
impl SpanLinkSlice<'_>
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.