pub struct RateReport {
pub stable: bool,
pub bytes_per_second: Option<f64>,
pub eta_seconds: Option<f64>,
pub samples: usize,
}Expand description
What the UI may display. bytes_per_second and eta_seconds are
Some only when stable is true.
Fields§
§stable: boolTrue once the window is long enough to divide with confidence.
bytes_per_second: Option<f64>§eta_seconds: Option<f64>Remaining seconds, when a total is known and the rate is stable and positive. Never negative.
samples: usizeSamples currently in the window, so a UI can show “measuring…” with some idea of progress toward a first number.
Trait Implementations§
Source§impl Clone for RateReport
impl Clone for RateReport
Source§fn clone(&self) -> RateReport
fn clone(&self) -> RateReport
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 moreimpl Copy for RateReport
Source§impl Debug for RateReport
impl Debug for RateReport
Source§impl<'de> Deserialize<'de> for RateReport
impl<'de> Deserialize<'de> for RateReport
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
Source§impl PartialEq for RateReport
impl PartialEq for RateReport
Source§impl Serialize for RateReport
impl Serialize for RateReport
impl StructuralPartialEq for RateReport
Auto Trait Implementations§
impl Freeze for RateReport
impl RefUnwindSafe for RateReport
impl Send for RateReport
impl Sync for RateReport
impl Unpin for RateReport
impl UnsafeUnpin for RateReport
impl UnwindSafe for RateReport
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