Struct prodash::unit::display::Throughput
source · pub struct Throughput {
pub value_change_in_timespan: Step,
pub timespan: Duration,
}
Expand description
A structure able to display throughput, a value change within a given duration.
Fields§
§value_change_in_timespan: Step
The change of value between the current value and the previous one.
timespan: Duration
The amount of time passed between the previous and the current value.
Implementations§
Trait Implementations§
source§impl Clone for Throughput
impl Clone for Throughput
source§fn clone(&self) -> Throughput
fn clone(&self) -> Throughput
Returns a copy 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 Throughput
impl Debug for Throughput
source§impl Ord for Throughput
impl Ord for Throughput
source§fn cmp(&self, other: &Throughput) -> Ordering
fn cmp(&self, other: &Throughput) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Throughput
impl PartialEq for Throughput
source§fn eq(&self, other: &Throughput) -> bool
fn eq(&self, other: &Throughput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Throughput
impl PartialOrd for Throughput
source§fn partial_cmp(&self, other: &Throughput) -> Option<Ordering>
fn partial_cmp(&self, other: &Throughput) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Throughput
impl StructuralEq for Throughput
impl StructuralPartialEq for Throughput
Auto Trait Implementations§
impl RefUnwindSafe for Throughput
impl Send for Throughput
impl Sync for Throughput
impl Unpin for Throughput
impl UnwindSafe for Throughput
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more