Struct heatmap::Config [] [src]

pub struct Config {
    // some fields omitted
}

Methods

impl Config
[src]

fn new() -> Config

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)

fn precision(&mut self, precision: u32) -> &mut Self

fn max_memory(&mut self, bytes: u32) -> &mut Self

fn max_value(&mut self, value: u64) -> &mut Self

fn slice_duration(&mut self, duration: u64) -> &mut Self

fn num_slices(&mut self, count: usize) -> &mut Self

fn start(&mut self, time: u64) -> &mut Self

fn build(self) -> Option<Heatmap>

Trait Implementations

impl Copy for Config
[src]

impl Clone for Config
[src]

fn clone(&self) -> Config

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Default for Config
[src]

fn default() -> Config

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