Module actix_web::rt::time[][src]

Expand description

Utilities for tracking time (Tokio re-exports).

Structs

A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.

Interval returned by interval and interval_at.

Future returned by sleep and sleep_until.

Future returned by timeout and timeout_at.

Functions

Creates new Interval that yields with interval of duration. The first tick completes immediately.

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

Waits until duration has elapsed.

Waits until deadline is reached.

Require a Future to complete before the specified duration has elapsed.