pub struct Snapshot { /* private fields */ }
Expand description

A snapshot of the state of an ExponentialDecayHistogram at some point in time.

Implementations§

Returns the value at a specified quantile in the snapshot, or 0 if it is empty.

For example, snapshot.value(0.5) returns the median value of the snapshot.

Panics

Panics if quantile is not between 0 and 1 (inclusive).

Returns the largest value in the snapshot, or 0 if it is empty.

Returns the smallest value in the snapshot, or 0 if it is empty.

Returns the mean of the values in the snapshot, or 0 if it is empty.

Returns the standard deviation of the values in the snapshot, or 0 if it is empty.

Returns the number of values which have been written to the histogram at the time of the snapshot.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.