[][src]Module actix::clock

A configurable source of time.

This module provides an API to get the current instant in such a way that the source of time may be configured. This allows mocking out the source of time in tests.

See Module tokio_timer::clock for full documentation.

Structs

Delay

Future returned by delay_until and delay_for.

Duration

A Duration type to represent a span of time, typically used for system timeouts.

Instant

A measurement of the system clock, useful for talking to external entities like the file system or other processes.

Interval

Stream returned by interval and interval_at.

Functions

delay_for

Waits until duration has elapsed.

delay_until

Waits until deadline is reached.

interval_at

Creates new Interval that yields with interval of period with the first tick completing at at.