Struct heatmap::Config [] [src]

pub struct Config { /* fields omitted */ }

A configuration struct for building custom Heatmaps.

Methods

impl Config
[src]

[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)

[src]

set the number of significant figures to mantain for values

[src]

set a bound on memory usage of Heatmap

[src]

set the max value to store within the Heatmap

[src]

set the duration of each Slice within the Heatmap

[src]

set the number of Slices to store

[src]

the start time of the Heatmap, used for Slice indexing

[src]

creates the Heatmap from the Config

Trait Implementations

impl Clone for Config
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Config
[src]

impl Default for Config
[src]

[src]

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