Struct git_features::progress::DoOrDiscard [−][src]
pub struct DoOrDiscard<T>(_);
Expand description
An implementation of Progress
which can be created easily from Option<impl Progress>
.
Implementations
Trait Implementations
Performs the conversion.
type SubProgress = DoOrDiscard<<T as Progress>::SubProgress>
type SubProgress = DoOrDiscard<<T as Progress>::SubProgress>
The type of progress returned by add_child()
.
pub fn add_child(
&mut self,
name: impl Into<String>
) -> <DoOrDiscard<T> as Progress>::SubProgress
pub fn add_child(
&mut self,
name: impl Into<String>
) -> <DoOrDiscard<T> as Progress>::SubProgress
Adds a new child, whose parent is this instance, with the given name. Read more
Initialize the Item for receiving progress information. Read more
Set the current progress to the given step
. The cost of this call is negligible,
making manual throttling not necessary. Read more
Returns the maximum about of items we expect, as provided with the init(…)
call
Increment the current progress to the given step
.
The cost of this call is negligible, making manual throttling not necessary. Read more
Set the name of the instance, altering the value given when crating it with add_child(…)
The progress is allowed to discard it. Read more
Get the name of the instance as given when creating it with add_child(…)
The progress is allowed to not be named, thus there is no guarantee that a previously set names ‘sticks’. Read more
Create a message
of the given level
and store it with the progress tree. Read more
Increment the current progress to the given 1. The cost of this call is negligible, making manual throttling not necessary. Read more
Create a message providing additional information about the progress thus far.
Create a message indicating the task is done successfully
A shorthand to print throughput information
A shorthand to print throughput information, with the given step and unit