pub struct LatencyMetrics {
pub network_latency_ns: u64,
pub parsing_latency_ns: u64,
pub processing_latency_ns: u64,
pub total_latency_ns: u64,
pub latency_jitter_ns: u64,
}Expand description
Detailed latency breakdown for performance optimization
Breaks down end-to-end latency into components to identify bottlenecks in the data processing pipeline. All values in nanoseconds for precision.
Fields§
§network_latency_ns: u64Network latency from exchange timestamp to first byte received
parsing_latency_ns: u64Time spent parsing raw message into structured data
processing_latency_ns: u64Time spent processing structured data in application logic
total_latency_ns: u64Total end-to-end latency from exchange to strategy
latency_jitter_ns: u64Latency variance measured as standard deviation
Trait Implementations§
Source§impl Clone for LatencyMetrics
impl Clone for LatencyMetrics
Source§fn clone(&self) -> LatencyMetrics
fn clone(&self) -> LatencyMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LatencyMetrics
impl RefUnwindSafe for LatencyMetrics
impl Send for LatencyMetrics
impl Sync for LatencyMetrics
impl Unpin for LatencyMetrics
impl UnwindSafe for LatencyMetrics
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