pub struct PerformanceMetrics {
pub current_rate_bps: Option<f64>,
pub average_rate_bps: Option<f64>,
pub bandwidth_limit_bps: Option<u64>,
pub bandwidth_utilization: Option<f64>,
pub phase_timings: PhaseTimings,
pub rate_adjustments: u32,
pub network_latency_ms: Option<u64>,
pub connection_time_ms: Option<u64>,
}Expand description
Performance metrics for download operations.
Fields§
§current_rate_bps: Option<f64>Current download rate in bytes per second
average_rate_bps: Option<f64>Average download rate since start in bytes per second
bandwidth_limit_bps: Option<u64>Current bandwidth limit in bytes per second (if throttled)
bandwidth_utilization: Option<f64>Bandwidth utilization as a percentage (0.0 to 1.0)
phase_timings: PhaseTimingsTime spent in each phase (in milliseconds)
rate_adjustments: u32Number of times rate was adjusted by adaptive algorithm
network_latency_ms: Option<u64>Network latency in milliseconds
connection_time_ms: Option<u64>Time to establish connection in milliseconds
Trait Implementations§
Source§impl Clone for PerformanceMetrics
impl Clone for PerformanceMetrics
Source§fn clone(&self) -> PerformanceMetrics
fn clone(&self) -> PerformanceMetrics
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 PerformanceMetrics
impl Debug for PerformanceMetrics
Source§impl Default for PerformanceMetrics
impl Default for PerformanceMetrics
Source§fn default() -> PerformanceMetrics
fn default() -> PerformanceMetrics
Returns the “default value” for a type. Read more
Source§impl PartialEq for PerformanceMetrics
impl PartialEq for PerformanceMetrics
impl StructuralPartialEq for PerformanceMetrics
Auto Trait Implementations§
impl Freeze for PerformanceMetrics
impl RefUnwindSafe for PerformanceMetrics
impl Send for PerformanceMetrics
impl Sync for PerformanceMetrics
impl Unpin for PerformanceMetrics
impl UnsafeUnpin for PerformanceMetrics
impl UnwindSafe for PerformanceMetrics
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