Expand description
Timer implementation that runs on its own thread and uses wall-clock deadlines.
This module emits errors via the log crate. Provide a logger implementation
in your application to see these messages.
Structs§
- Real
Clock - System clock backed by
SystemTime::now(). - Timer
Ref - A reference to a thread timer.
- Timer
With Thread - A timer implementation that uses its own thread.
Enums§
- Thread
Timer Error - Errors returned by the thread timer APIs.
Constants§
- DEFAULT_
MAX_ WAIT - Default value for [TimerWithThread::new]
max_wait_timeargument.
Traits§
- Clock
- Abstraction over time for testing.
Type Aliases§
- Closure
Timer Ref - A shorthand for a reference to a [TimerWithThread] with closure actions.
- Uuid
Closure Timer uuid - A shorthand for a timer that uses UUID closure actions.
- Uuid
Closure Timer Ref uuid - A shorthand for a reference to a [TimerWithThread] with UUID closure actions.