Struct speedometer::Speedometer [] [src]

pub struct Speedometer {
    pub window_size: Duration,
    // some fields omitted
}

Measure speed in bytes/second.

Fields

Size of the window over which we measure entries.

Methods

impl Speedometer
[src]

[src]

Create a new instance.

[src]

Create a new instance with a queue of capacity.

[src]

Create a new instance with a new queue. Useful if you have prior knowledge of how big the allocation for the queue should be.

[src]

Enter a data point into the speedometer.

[src]

Measure the speed.

Trait Implementations

impl Debug for Speedometer
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for Speedometer
[src]

[src]

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

Auto Trait Implementations

impl Send for Speedometer

impl Sync for Speedometer