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

A Timer with a given duration after which it will enter into a “Ringing” state. The Timer can be reset at an given time, or manually set to start “Ringing” again.

Implementations

Creates a new Timer with a given Duration

Reset the Timer to stop ringing and wait till ‘Duration’ has elapsed again

Gets whether or not the Timer is “Ringing” (i.e. the given Duration has elapsed since the last “reset”)

Manually causes the Timer to enter into a “Ringing” state

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.