Struct heatmap::Config [] [src]

pub struct Config {
    // some fields omitted
}

A configuration struct for building custom Heatmaps.

Methods

impl Config
[src]

create a new Config with the defaults

Defaults

  • precision => 3
  • max_memory => 0 (unlimited)
  • max_value => 1_000_000_000 (1 second in nanoseconds)
  • slice_duration => 60_000_000_000 (1 minute in nanoseconds)
  • num_slices => 60 (1 hour of heatmap)
  • start => 0 (start from time 0)

set the number of significant figures to mantain for values

set a bound on memory usage of Heatmap

set the max value to store within the Heatmap

set the duration of each Slice within the Heatmap

set the number of Slices to store

the start time of the Heatmap, used for Slice indexing

creates the Heatmap from the Config

Trait Implementations

impl Clone for Config
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Config
[src]

impl Default for Config
[src]

Returns the "default value" for a type. Read more