#[non_exhaustive]pub struct TimeEvents {
pub time_event: Vec<TimeEvent>,
pub dropped_annotations_count: i32,
pub dropped_message_events_count: i32,
/* private fields */
}Expand description
A collection of TimeEvents. A TimeEvent is a time-stamped annotation
on the span, consisting of either user-supplied key:value pairs, or
details of a message sent/received between Spans.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.time_event: Vec<TimeEvent>A collection of TimeEvents.
dropped_annotations_count: i32The number of dropped annotations in all the included time events. If the value is 0, then no annotations were dropped.
dropped_message_events_count: i32The number of dropped message events in all the included time events. If the value is 0, then no message events were dropped.
Implementations§
Source§impl TimeEvents
impl TimeEvents
pub fn new() -> Self
Sourcepub fn set_time_event<T, V>(self, v: T) -> Self
pub fn set_time_event<T, V>(self, v: T) -> Self
Sets the value of time_event.
Sourcepub fn set_dropped_annotations_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_dropped_annotations_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of dropped_annotations_count.
Sourcepub fn set_dropped_message_events_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_dropped_message_events_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of dropped_message_events_count.
Trait Implementations§
Source§impl Clone for TimeEvents
impl Clone for TimeEvents
Source§fn clone(&self) -> TimeEvents
fn clone(&self) -> TimeEvents
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 moreSource§impl Debug for TimeEvents
impl Debug for TimeEvents
Source§impl Default for TimeEvents
impl Default for TimeEvents
Source§fn default() -> TimeEvents
fn default() -> TimeEvents
Returns the “default value” for a type. Read more
Source§impl PartialEq for TimeEvents
impl PartialEq for TimeEvents
impl StructuralPartialEq for TimeEvents
Auto Trait Implementations§
impl Freeze for TimeEvents
impl RefUnwindSafe for TimeEvents
impl Send for TimeEvents
impl Sync for TimeEvents
impl Unpin for TimeEvents
impl UnwindSafe for TimeEvents
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