pub struct MetricRef<'a> {
pub when: OffsetDateTime,
pub event: Entry,
pub key: &'a Key,
}Expand description
A single event borrowed from the Procession, this representation will not cause any additional allocations and can be serialized, the timestamp is re-calculated as part of the construction but no other computation should occur.
Fields§
§when: OffsetDateTimeThe time this event occurred
event: EntryThe value emitted for the key
key: &'a KeyThe key and labels provided by the metrics crate
Trait Implementations§
Source§impl<'a> FromIterator<MetricRef<'a>> for Procession
impl<'a> FromIterator<MetricRef<'a>> for Procession
Auto Trait Implementations§
impl<'a> Freeze for MetricRef<'a>
impl<'a> RefUnwindSafe for MetricRef<'a>
impl<'a> Send for MetricRef<'a>
impl<'a> Sync for MetricRef<'a>
impl<'a> Unpin for MetricRef<'a>
impl<'a> UnsafeUnpin for MetricRef<'a>
impl<'a> UnwindSafe for MetricRef<'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