Struct prodash::Throughput[][src]

pub struct Throughput { /* fields omitted */ }
Expand description

A utility to compute throughput of a set of progress values usually available to a renderer.

Implementations

Called at the beginning of the drawing of a renderer to remember at which time progress values are going to be updated with update_and_get(…).

Lookup or create the progress value at key and set its current progress, returning its computed throughput.

Compare the keys in sorted_values with our internal state and remove all missing tasks from it.

This should be called after update_and_get(…) to pick up removed/finished progress.

Trait Implementations

Returns the “default value” for a type. Read more

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

Performs the conversion.

Performs the conversion.

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.