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

A reservoir which exponentially weights in favor of recent values.

Implementations

Creates a new reservoir with a SystemClock.

Creates a new reservoir using the provided Clock as its time source.

Trait Implementations

Returns the “default value” for a type. Read more

Adds a value to the reservoir.

Returns a snapshot of statistics about the values in the reservoir.

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.