[][src]Crate async_timer

Async timer lib

Provides Timer interface that can be used across various primitives of the crate.

Timers

Timer can be implemented through Timer interface. By default library provides common implementations for various platforms which is available through PlatformTimer alias.

If there is implementation for particular platform, then DummyTimer is used. It panics in runtime

Primitives

  • Delay - Provides future that resolves some time in future
  • Timed - A wrapper over future that allows to limit time for the future to resolve

Re-exports

pub use state::TimerState;
pub use delay::Delay;
pub use timed::Timed;

Modules

delay

Delaying future Delay

provider

Builtin implementations of Timer Timer implementations

state

Timer's state. State module

timed

Timed wrapper for futures Timed future

Traits

Timer

Describes Timer interface

Type Definitions

PlatformTimer

Apple based timer alias.