pub struct SpanRecord {
pub id: u64,
pub parent_id: Option<u64>,
pub metadata: &'static Metadata<'static>,
pub fields: FieldList,
pub events: Vec<ReuseRef<EventRecord>>,
pub opened_at: Instant,
pub closed_at: Option<Instant>,
}Fields§
§id: u64§parent_id: Option<u64>§metadata: &'static Metadata<'static>§fields: FieldList§events: Vec<ReuseRef<EventRecord>>Events captured while this span was on the stack. Each entry is
a pooled EventRecord — pushing one moves a 16-byte pointer pair
rather than the full inline-vec body, and the underlying
EventRecord heap allocation is recycled when the SpanRecord
finally drops.
opened_at: Instant§closed_at: Option<Instant>Implementations§
Source§impl SpanRecord
impl SpanRecord
Sourcepub fn field(&self, name: &str) -> Option<&FieldValue>
pub fn field(&self, name: &str) -> Option<&FieldValue>
Convenience: linear-scan field lookup by name.
Trait Implementations§
Source§impl Clone for SpanRecord
impl Clone for SpanRecord
Source§fn clone(&self) -> SpanRecord
fn clone(&self) -> SpanRecord
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 moreAuto Trait Implementations§
impl Freeze for SpanRecord
impl !RefUnwindSafe for SpanRecord
impl Send for SpanRecord
impl Sync for SpanRecord
impl Unpin for SpanRecord
impl UnsafeUnpin for SpanRecord
impl !UnwindSafe for SpanRecord
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