Struct lrs::time::Timer

A timer.

Syntax

struct Timer {
    /* private fields */
}

Methods

ReceiverNameDescription
&selfdisable

Disables the timer.

&selfinterval

Sets the timer to expire every iv time units.

&selfinterval_from

Sets the timer to expire every iv time units, starting at the absolute start.

&selfinterval_in

Sets the timer to expire every iv time units, starting in when units.

&selfonce_at

Sets the timer to expire once at the absolute when.

&selfonce_in

Sets the timer to expire in when time units.

&selfstatus

Returns the status of the timer.

TODO: Document this.

&selfticks

Returns the number of times the timer expired since this function was last called.

Trait implementations

NameDescription
Drop

Objects with a destructor.

FDContainer

Objects that are file descriptor wrappers.