Struct SpanAddEventMessage
pub struct SpanAddEventMessage<'a> {
pub trace_id: TraceId,
pub span_id: SpanId,
pub name: Cow<'a, str>,
pub time_unix_nano: u64,
pub attributes: Cow<'a, [KeyValue<'a>]>,
}
Expand description
Message indicating an event has been added to a span.
Fields§
§trace_id: TraceId
The trace this span belongs to
span_id: SpanId
The span the event is being added to
name: Cow<'a, str>
The name of the event
time_unix_nano: u64
Timestamp when the event occurred
attributes: Cow<'a, [KeyValue<'a>]>
Attributes providing additional context for the event
Trait Implementations§
§impl<'a> Clone for SpanAddEventMessage<'a>
impl<'a> Clone for SpanAddEventMessage<'a>
§fn clone(&self) -> SpanAddEventMessage<'a>
fn clone(&self) -> SpanAddEventMessage<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<'a> Debug for SpanAddEventMessage<'a>
impl<'a> Debug for SpanAddEventMessage<'a>
§impl<'de, 'a> Deserialize<'de> for SpanAddEventMessage<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for SpanAddEventMessage<'a>where
'de: 'a,
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpanAddEventMessage<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SpanAddEventMessage<'a>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<'a> Serialize for SpanAddEventMessage<'a>
impl<'a> Serialize for SpanAddEventMessage<'a>
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl ToStatic for SpanAddEventMessage<'_>
impl ToStatic for SpanAddEventMessage<'_>
§type Static = SpanAddEventMessage<'static>
type Static = SpanAddEventMessage<'static>
The same type but with ’static lifetime and owned data.
Auto Trait Implementations§
impl<'a> Freeze for SpanAddEventMessage<'a>
impl<'a> RefUnwindSafe for SpanAddEventMessage<'a>
impl<'a> Send for SpanAddEventMessage<'a>
impl<'a> Sync for SpanAddEventMessage<'a>
impl<'a> Unpin for SpanAddEventMessage<'a>
impl<'a> UnwindSafe for SpanAddEventMessage<'a>
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