Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DoumanAsh/async-timer
/ types & classes
Types & classes
30 in github.com/DoumanAsh/async-timer
⨍
Functions
105
◇
Types & classes
30
↓ 1 callers
Class
Expired
Error when [Timed](struct.Timed.html) expires Implements `Future` that can be used to restart `Timed` Note, that `Timer` starts execution immediately
src/timed.rs:97
Class
AppleTimer
Posix Timer Currently implemented only for `Linux` and `Android` as BSD systems proved to be a bit problematic
src/timer/apple.rs:134
Class
AsyncTokioTimer
Timer implemented on top of `AsyncFd`
src/timer/async_tokio1.rs:201
Class
AtomicWaker
Atomic waker used by `TimerState`
src/state.rs:56
Interface
Callback
Interface to timer's callback It is guaranteed that callback is invoked only once, unless `Timer` is restarted or `TimerState::reset` is called(happe
src/state.rs:257
Class
DummyTimer
Dummy Timer with implementation that panics
src/timer/dummy.rs:8
Class
FILETIME
src/timer/win.rs:17
Class
Interval
src/interval.rs:37
Class
PosixTimer
Posix Timer When using `c_wrapper` feature implementation uses C shim to create timers which call callbacks from a separate thread. Without it, call
src/timer/posix.rs:133
Class
RawTimer
Wrapper over fd based timer.
src/timer/async_tokio1.rs:18
Class
State
src/timed.rs:10
Enum
State
src/timer/web.rs:48
Enum
State
src/timer/apple.rs:125
Enum
State
src/timer/win.rs:68
Enum
State
src/timer/posix.rs:121
Enum
State
src/timer/async_tokio1.rs:195
Class
StateRestore
src/state.rs:61
Interface
SyncTimer
Describes timer interface that doesn't require async event loop. In most cases these timers are implemented by OS calling back a provided callback.
src/timer/mod.rs:96
Class
Timed
Limiter on time to wait for underlying `Future` Usage ```rust, no_run async fn job() { } async fn do_job() { let mut job = job(); let job = unsafe
src/timed.rs:41
Interface
Timer
Timer # Common implementations: - Windows uses thread pooled timer - Apple systems uses dispatch source API - Posix compatible `timer_create`, avail
src/timer/mod.rs:35
Interface
TimerFd
src/timer/async_tokio1.rs:10
Class
TimerHandle
src/timer/web.rs:16
Class
TimerHandle
src/timer/apple.rs:49
Class
TimerState
Timer's state
src/state.rs:198
Class
ULONGTIME
src/timer/win.rs:22
Class
WebTimer
Web timer wrapper
src/timer/web.rs:57
Class
WinTimer
Windows Native timer
src/timer/win.rs:77
Class
itimerspec
src/timer/posix.rs:29
Class
itimerspec
src/timer/async_tokio1.rs:39
Class
sigevent
src/c_wrapper/posix.c:8