Struct git_features::progress::ThroughputOnDrop [−][src]
pub struct ThroughputOnDrop<T>(_, _)
where
T: Progress;
Emit a message with throughput information when the instance is dropped.
Implementations
impl<T> ThroughputOnDrop<T> where
T: Progress,
[src]
impl<T> ThroughputOnDrop<T> where
T: Progress,
[src]pub fn new(inner: T) -> ThroughputOnDrop<T>
[src]
Create a new instance by providing the inner
Progress
implementation.
Trait Implementations
impl<T> Progress for ThroughputOnDrop<T> where
T: Progress,
[src]
impl<T> Progress for ThroughputOnDrop<T> where
T: Progress,
[src]type SubProgress = <T as Progress>::SubProgress
The type of progress returned by add_child()
.
pub fn add_child(
&mut self,
name: impl Into<String>
) -> <ThroughputOnDrop<T> as Progress>::SubProgress
[src]
&mut self,
name: impl Into<String>
) -> <ThroughputOnDrop<T> as Progress>::SubProgress
pub fn init(&mut self, max: Option<usize>, unit: Option<Unit>)
[src]
pub fn set(&mut self, step: usize)
[src]
pub fn unit(&self) -> Option<Unit>
[src]
pub fn max(&self) -> Option<usize>
[src]
pub fn step(&self) -> usize
[src]
pub fn inc_by(&mut self, step: usize)
[src]
pub fn set_name(&mut self, name: impl Into<String>)
[src]
pub fn name(&self) -> Option<String>
[src]
pub fn message(&mut self, level: MessageLevel, message: impl Into<String>)
[src]
pub fn inc(&mut self)
[src]
pub fn info(&mut self, message: impl Into<String>)
[src]
pub fn done(&mut self, message: impl Into<String>)
[src]
pub fn fail(&mut self, message: impl Into<String>)
[src]
pub fn show_throughput(&mut self, start: Instant)
[src]
pub fn show_throughput_with(&mut self, start: Instant, step: usize, unit: Unit)
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for ThroughputOnDrop<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for ThroughputOnDrop<T> where
T: RefUnwindSafe,
impl<T> Send for ThroughputOnDrop<T>
impl<T> Send for ThroughputOnDrop<T>
impl<T> Sync for ThroughputOnDrop<T> where
T: Sync,
impl<T> Sync for ThroughputOnDrop<T> where
T: Sync,
impl<T> Unpin for ThroughputOnDrop<T> where
T: Unpin,
impl<T> Unpin for ThroughputOnDrop<T> where
T: Unpin,
impl<T> UnwindSafe for ThroughputOnDrop<T> where
T: UnwindSafe,
impl<T> UnwindSafe for ThroughputOnDrop<T> where
T: UnwindSafe,