Struct histogram::Config [] [src]

pub struct Config { /* fields omitted */ }

A configuration struct for building custom Histograms.

Methods

impl Config
[src]

[src]

create a new Histogram Config with defaults

Example

let mut c = Histogram::configure();

[src]

set HistogramConfig precision

Example

let mut c = Histogram::configure();
c.precision(4); // set to 4 significant figures

[src]

set HistogramConfig memory limit

Example

let mut c = Histogram::configure();
c.max_memory(1024*1024); // cap Histogram at 1MB of data

[src]

set HistogramConfig value limit

Example

let mut c = Histogram::configure();
c.max_value(1000); // values above 1000 will not be stored

[src]

Build a new histogram based on the current configuration values. Return None if the new histogram would require more than the configured memory size.

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

Auto Trait Implementations

impl Send for Config

impl Sync for Config