Struct pendulum::Pendulum [] [src]

pub struct Pendulum<T> { /* fields omitted */ }

Pendulum which represents a timer that stores timeouts for items of type T.

Methods

impl<T> Pendulum<T>
[src]

[src]

Insert a timeout with the given duration and the given item into the Pendulum.

[src]

Removes the timeout corresponding with the given Token, if one exists.

[src]

Retrive the next expired timeout from the Pendulum.

This is a non-blocking operation.

[src]

Retrive a (cloneable) reference to the ticker assocaited with this Pendulum.

[src]

Maximum capacity supported by this Pendulum.

[src]

Maximum timeout supported by this Pendulum.

Trait Implementations

impl<T> From<PendulumBuilder> for Pendulum<T>
[src]

[src]

Performs the conversion.