pub struct LatencyAnalyzer { /* private fields */ }Expand description
Latency analyzer
Analyzes latency samples and provides statistics.
Implementations§
Source§impl LatencyAnalyzer
impl LatencyAnalyzer
Sourcepub fn new(recorder: Arc<LatencyRecorder>) -> Self
pub fn new(recorder: Arc<LatencyRecorder>) -> Self
Create a new latency analyzer
Sourcepub async fn calculate_stats(&self) -> LatencyStats
pub async fn calculate_stats(&self) -> LatencyStats
Calculate latency statistics
Sourcepub async fn calculate_stats_for_endpoint(&self, endpoint: &str) -> LatencyStats
pub async fn calculate_stats_for_endpoint(&self, endpoint: &str) -> LatencyStats
Calculate statistics for a specific endpoint
Trait Implementations§
Source§impl Clone for LatencyAnalyzer
impl Clone for LatencyAnalyzer
Source§fn clone(&self) -> LatencyAnalyzer
fn clone(&self) -> LatencyAnalyzer
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 moreAuto Trait Implementations§
impl Freeze for LatencyAnalyzer
impl !RefUnwindSafe for LatencyAnalyzer
impl Send for LatencyAnalyzer
impl Sync for LatencyAnalyzer
impl Unpin for LatencyAnalyzer
impl !UnwindSafe for LatencyAnalyzer
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