pub struct SpanEvent<T>where
T: SpanText,{
pub time_unix_nano: u64,
pub name: T,
pub attributes: HashMap<T, AttributeAnyValue<T>>,
}Expand description
The generic representation of a V04 span event.
T is the type used to represent strings in the span event.
Fields§
§time_unix_nano: u64§name: T§attributes: HashMap<T, AttributeAnyValue<T>>Implementations§
Source§impl SpanEvent<&str>
impl SpanEvent<&str>
Sourcepub fn try_to_bytes(&self, bytes: &Bytes) -> Option<SpanEventBytes>
pub fn try_to_bytes(&self, bytes: &Bytes) -> Option<SpanEventBytes>
Converts a borrowed SpanEventSlice into an owned SpanEventBytes, resolving references
into the provided Bytes buffer. Fails with None if any slice is invalid or cannot be
converted.
Trait Implementations§
impl<T> StructuralPartialEq for SpanEvent<T>where
T: SpanText,
Auto Trait Implementations§
impl<T> Freeze for SpanEvent<T>where
T: Freeze,
impl<T> RefUnwindSafe for SpanEvent<T>where
T: RefUnwindSafe,
impl<T> Send for SpanEvent<T>where
T: Send,
impl<T> Sync for SpanEvent<T>where
T: Sync,
impl<T> Unpin for SpanEvent<T>where
T: Unpin,
impl<T> UnwindSafe for SpanEvent<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