pub struct PerformanceEvent {
pub timestamp: SystemTime,
pub event_type: PerformanceEventType,
pub latency_us: u64,
pub memory_usage: u64,
pub metadata: HashMap<String, String>,
}Expand description
Performance event for detailed logging
Fields§
§timestamp: SystemTimeEvent timestamp
event_type: PerformanceEventTypeEvent type
latency_us: u64Operation latency (microseconds)
memory_usage: u64Memory usage at time of event
metadata: HashMap<String, String>Additional metadata
Trait Implementations§
Source§impl Clone for PerformanceEvent
impl Clone for PerformanceEvent
Source§fn clone(&self) -> PerformanceEvent
fn clone(&self) -> PerformanceEvent
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 PerformanceEvent
impl Debug for PerformanceEvent
Source§impl<'de> Deserialize<'de> for PerformanceEvent
impl<'de> Deserialize<'de> for PerformanceEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PerformanceEvent
impl RefUnwindSafe for PerformanceEvent
impl Send for PerformanceEvent
impl Sync for PerformanceEvent
impl Unpin for PerformanceEvent
impl UnwindSafe for PerformanceEvent
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