Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DoumanAsh/async-timer
/ functions
Functions
105 in github.com/DoumanAsh/async-timer
⨍
Functions
105
◇
Types & classes
30
↓ 10 callers
Method
is_done
Returns whether notification has been fired. Namely it checks whether `Waker` is registered with `TimerState` or not. It is not intended for user to
src/state.rs:218
↓ 8 callers
Method
reset
Resets state, allowing to wake once again.
src/state.rs:224
↓ 5 callers
Method
register
This is the same function as `register` but working with owned version.
src/state.rs:144
↓ 5 callers
Method
wake
(&self)
src/state.rs:161
↓ 4 callers
Function
poll_sync
(timer: &mut T, ctx: &mut task::Context)
src/timer/mod.rs:121
↓ 4 callers
Function
timer_create
(timeout: time::Duration, state: *const TimerState)
src/timer/web.rs:34
↓ 3 callers
Method
clear
(&mut self)
src/timer/web.rs:23
↓ 3 callers
Method
set
(&mut self, timeout: time::Duration)
src/timer/async_tokio1.rs:64
↓ 3 callers
Method
set_delay
(&mut self, timeout: time::Duration)
src/timer/apple.rs:110
↓ 3 callers
Function
set_timer_value
(fd: ffi::PTP_TIMER, timeout: time::Duration)
src/timer/win.rs:55
↓ 3 callers
Function
set_timer_value
(fd: ffi::timer_t, timeout: time::Duration)
src/timer/posix.rs:102
↓ 3 callers
Method
wait
Returns future for next expiration.
src/interval.rs:81
↓ 3 callers
Function
waker
(data: fn())
src/state.rs:22
↓ 2 callers
Method
init
(&mut self, init: F)
src/timer/web.rs:139
↓ 2 callers
Method
resume
(&mut self)
src/timer/apple.rs:100
↓ 2 callers
Method
suspend
(&mut self)
src/timer/apple.rs:90
↓ 2 callers
Function
test_interval_average
(num_runs: usize, interval: time::Duration)
tests/interval.rs:25
↓ 1 callers
Method
cancel
Informs that timer is cancel, therefore no further callbacks to be passed
src/state.rs:230
↓ 1 callers
Method
cancel
(&mut self)
src/timer/web.rs:127
↓ 1 callers
Method
cancel
(&mut self)
src/timer/win.rs:146
↓ 1 callers
Function
interval
Creates interval with default Platform timer.
src/lib.rs:57
↓ 1 callers
Function
new_sync_timer
Creates new timer, which always implements `SyncTimer`
src/timer/mod.rs:200
↓ 1 callers
Function
new_timer
Creates new timer, timer type depends on platform.
src/timer/mod.rs:194
↓ 1 callers
Function
posix_timer
src/c_wrapper/posix.c:6
↓ 1 callers
Method
read
(&mut self)
src/timer/async_tokio1.rs:90
↓ 1 callers
Method
register_ref
(&self, waker: &task::Waker)
src/state.rs:151
↓ 1 callers
Method
restart
Restarts interval
src/interval.rs:69
↓ 1 callers
Method
restart
(&mut self, new_value: time::Duration)
src/timer/async_tokio1.rs:241
↓ 1 callers
Method
restart_ctx
(&mut self, new_value: time::Duration, waker: &task::Waker)
src/timer/web.rs:112
↓ 1 callers
Function
time_create
(state: *mut TimerState)
src/timer/win.rs:46
↓ 1 callers
Function
time_create
(state: *mut TimerState)
src/timer/posix.rs:66
↓ 1 callers
Function
timed
Creates timed future with default Platform timer.
src/lib.rs:51
Function
action
(callback: *const ())
src/state.rs:17
Method
as_raw_fd
(&self)
src/timer/async_tokio1.rs:22
Method
cancel
Stops interval
src/interval.rs:64
Method
cancel
(&mut self)
src/timer/apple.rs:200
Method
cancel
(&mut self)
src/timer/dummy.rs:30
Method
cancel
(&mut self)
src/timer/posix.rs:200
Method
cancel
(&mut self)
src/timer/async_tokio1.rs:261
Method
drop
(&mut self)
src/state.rs:63
Method
drop
(&mut self)
src/timer/web.rs:29
Method
drop
(&mut self)
src/timer/apple.rs:56
Method
drop
(&mut self)
src/timer/win.rs:190
Method
drop
(&mut self)
src/timer/posix.rs:249
Method
drop
(&mut self)
src/timer/async_tokio1.rs:29
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/timed.rs:122
Method
init
(&mut self, init: F)
src/timer/apple.rs:212
Method
init
(&mut self, _: F)
src/timer/dummy.rs:44
Method
init
(&mut self, init: F)
src/timer/win.rs:159
Method
init
(&mut self, init: F)
src/timer/posix.rs:212
Function
init_sig
()
src/timer/posix.rs:46
Method
is_expired
(&self)
src/timer/web.rs:89
Method
is_expired
(&self)
src/timer/apple.rs:164
Method
is_expired
(&self)
src/timer/dummy.rs:26
Method
is_expired
(&self)
src/timer/win.rs:108
Method
is_expired
(&self)
src/timer/posix.rs:164
Method
is_expired
(&self)
src/timer/async_tokio1.rs:234
Method
is_ticking
(&self)
src/timer/web.rs:79
Method
is_ticking
(&self)
src/timer/apple.rs:156
Method
is_ticking
(&self)
src/timer/dummy.rs:22
Method
is_ticking
(&self)
src/timer/win.rs:100
Method
is_ticking
(&self)
src/timer/posix.rs:156
Method
is_ticking
(&self)
src/timer/async_tokio1.rs:226
Function
main
()
build.rs:2
Method
new
()
src/state.rs:136
Method
new
Creates new instance with specified timer type.
src/interval.rs:54
Method
new
Creates new instance with specified timeout Unsafe version of `new` that doesn't require `Unpin`. Requires to specify `Timer` type (e.g. `Timed::<ti
src/timed.rs:59
Method
new
Creates new instance
src/timer/web.rs:64
Method
new
(state: *mut TimerState)
src/timer/apple.rs:70
Method
new
Creates new instance
src/timer/dummy.rs:12
Method
new
Creates new instance
src/timer/win.rs:84
Method
new
Creates new instance
src/timer/posix.rs:140
Method
new
()
src/timer/async_tokio1.rs:57
Method
platform_new
Creates new instance using platform timer
src/interval.rs:47
Method
platform_new
Creates new instance using [Timer](../oneshot/type.Timer.html) alias.
src/timed.rs:48
Method
poll
(mut self: Pin<&mut Self>, ctx: &mut task::Context)
src/interval.rs:89
Method
poll
(self: Pin<&mut Self>, ctx: &mut task::Context)
src/timed.rs:73
Method
poll
(self: Pin<&mut Self>, ctx: &mut task::Context)
src/timer/web.rs:161
Method
poll
(self: Pin<&mut Self>, ctx: &mut task::Context)
src/timer/apple.rs:236
Method
poll
(self: Pin<&mut Self>, _: &mut task::Context)
src/timer/dummy.rs:52
Method
poll
(self: Pin<&mut Self>, ctx: &mut task::Context)
src/timer/win.rs:184
Method
poll
(self: Pin<&mut Self>, ctx: &mut task::Context)
src/timer/posix.rs:243
Method
poll
(mut self: Pin<&mut Self>, ctx: &mut task::Context)
src/timer/async_tokio1.rs:269
Method
restart
(&mut self, new_value: time::Duration)
src/timer/web.rs:98
Method
restart
(&mut self, new_value: time::Duration)
src/timer/apple.rs:171
Method
restart
(&mut self, _: time::Duration)
src/timer/dummy.rs:34
Method
restart
(&mut self, new_value: time::Duration)
src/timer/win.rs:115
Method
restart
(&mut self, new_value: time::Duration)
src/timer/posix.rs:171
Method
restart_ctx
(&mut self, new_value: time::Duration, waker: &task::Waker)
src/timer/apple.rs:185
Method
restart_ctx
(&mut self, _: time::Duration, _: &task::Waker)
src/timer/dummy.rs:38
Method
restart_ctx
(&mut self, new_value: time::Duration, waker: &task::Waker)
src/timer/win.rs:130
Method
restart_ctx
(&mut self, new_value: time::Duration, waker: &task::Waker)
src/timer/posix.rs:185
Method
restart_ctx
(&mut self, new_value: time::Duration, _: &task::Waker)
src/timer/async_tokio1.rs:257
Function
should_not_clone
(_: *const())
src/state.rs:8
Function
test_async_timer
()
tests/timer.rs:7
Function
test_average_of_mid_interval
()
tests/interval.rs:71
Function
test_average_of_small_interval
()
tests/interval.rs:64
Function
test_cancel_timer
()
tests/timer.rs:21
Function
test_interval
()
tests/interval.rs:7
Function
test_timed
()
tests/timed.rs:7
next →
1–100 of 105, ranked by callers