pub struct SpanMetadata {
pub scope: Vec<Id>,
pub callsite: Identifier,
pub target: &'static str,
pub span_name: &'static str,
pub file: &'static str,
pub line: u32,
pub labels: Vec<(&'static str, String)>,
}Expand description
Metadata for a span.
Fields§
§scope: Vec<Id>The scope of the span.
callsite: IdentifierThe callsite ID of the span.
target: &'static strThe span ID of the span.
span_name: &'static strThe name of the span.
file: &'static strThe file the span was created in.
line: u32The line the span was created on.
labels: Vec<(&'static str, String)>Labels for the span.
Auto Trait Implementations§
impl !RefUnwindSafe for SpanMetadata
impl !UnwindSafe for SpanMetadata
impl Freeze for SpanMetadata
impl Send for SpanMetadata
impl Sync for SpanMetadata
impl Unpin for SpanMetadata
impl UnsafeUnpin for SpanMetadata
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