Struct git_repository::progress::unit::display::Throughput
[−]unstable
and progress
only.Expand description
A structure able to display throughput, a value change within a given duration.
Fields
value_change_in_timespan: usize
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
impl Throughput
impl Throughput
pub fn new(value_change_in_timespan: usize, timespan: Duration) -> Throughput
pub fn new(value_change_in_timespan: usize, timespan: Duration) -> Throughput
A convenience method to create a new ThroughPut from value_change_in_timespan
and timespan
.
Trait Implementations
impl Clone for Throughput
impl Clone for Throughput
fn clone(&self) -> Throughput
fn clone(&self) -> Throughput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for Throughput
impl Debug for Throughput
impl Ord for Throughput
impl Ord for Throughput
fn cmp(&self, other: &Throughput) -> Ordering
fn cmp(&self, other: &Throughput) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
impl PartialEq<Throughput> for Throughput
impl PartialEq<Throughput> for Throughput
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 ==
. Read more
impl PartialOrd<Throughput> for Throughput
impl PartialOrd<Throughput> for Throughput
fn partial_cmp(&self, other: &Throughput) -> Option<Ordering>
fn partial_cmp(&self, other: &Throughput) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more