pub struct ThroughputOnDrop<T>(_, _) 
where
    T: Progress
;
Available on crate features unstable and progress only.
Expand description

Emit a message with throughput information when the instance is dropped.

Implementations

Create a new instance by providing the inner Progress implementation.

Trait Implementations

Executes the destructor for this type. Read more

The type of progress returned by add_child().

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 (cloned) unit associated with this Progress

Returns the maximum about of items we expect, as provided with the init(…) call

Returns the current step, as controlled by inc*(…) calls

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

Create a message indicating the task failed

A shorthand to print throughput information

A shorthand to print throughput information, with the given step and unit, and message level.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.