Struct prodash::Throughput [−][src]
pub struct Throughput { /* fields omitted */ }
A utility to compute throughput of a set of progress values usually available to a renderer.
Implementations
impl Throughput
[src]
impl Throughput
[src]pub fn update_elapsed(&mut self)
[src]
pub fn update_elapsed(&mut self)
[src]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(…)
.
pub fn update_and_get(
&mut self,
key: &Key,
progress: Option<&Value>
) -> Option<Throughput>
[src]
pub fn update_and_get(
&mut self,
key: &Key,
progress: Option<&Value>
) -> Option<Throughput>
[src]Lookup or create the progress value at key
and set its current progress
, returning its computed
throughput.
Trait Implementations
impl Default for Throughput
[src]
impl Default for Throughput
[src]fn default() -> Throughput
[src]
fn default() -> Throughput
[src]Returns the “default value” for a type. Read more