pub struct Event { /* private fields */ }Expand description
Complete immutable snapshot delivered to one reporter call.
Implementations§
Source§impl Event
impl Event
Sourcepub const fn operation_id(&self) -> u64
pub const fn operation_id(&self) -> u64
Returns the process-local operation identifier.
Sourcepub fn attributes(&self) -> &OperationAttributes
pub fn attributes(&self) -> &OperationAttributes
Returns immutable operation correlation attributes.
Sourcepub fn attribute(&self, key: &str) -> Option<&str>
pub fn attribute(&self, key: &str) -> Option<&str>
Returns one operation correlation attribute by key.
Sourcepub fn metrics(&self) -> &[MetricSnapshot]
pub fn metrics(&self) -> &[MetricSnapshot]
Returns all metric snapshots in declaration order.
Sourcepub fn metric(&self, metric_id: &str) -> Option<&MetricSnapshot>
pub fn metric(&self, metric_id: &str) -> Option<&MetricSnapshot>
Returns one metric snapshot by stable ID.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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