pub struct ThroughputWindow {
pub window_secs: u64,
pub completed_in_window: u64,
pub failed_in_window: u64,
pub tasks_per_second: f64,
pub success_rate: f64,
}Expand description
Rolling-window throughput statistics.
Fields§
§window_secs: u64Window duration in seconds.
completed_in_window: u64Tasks completed within the window.
failed_in_window: u64Tasks failed within the window.
tasks_per_second: f64Tasks per second (completed / window_secs).
success_rate: f64Success rate within the window [0.0, 1.0].
Implementations§
Trait Implementations§
Source§impl Clone for ThroughputWindow
impl Clone for ThroughputWindow
Source§fn clone(&self) -> ThroughputWindow
fn clone(&self) -> ThroughputWindow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ThroughputWindow
impl Debug for ThroughputWindow
Source§impl<'de> Deserialize<'de> for ThroughputWindow
impl<'de> Deserialize<'de> for ThroughputWindow
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 ThroughputWindow
impl RefUnwindSafe for ThroughputWindow
impl Send for ThroughputWindow
impl Sync for ThroughputWindow
impl Unpin for ThroughputWindow
impl UnsafeUnpin for ThroughputWindow
impl UnwindSafe for ThroughputWindow
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