Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/smol-rs/event-listener
/ functions
Functions
129 in github.com/smol-rs/event-listener
⨍
Functions
129
◇
Types & classes
46
↓ 53 callers
Method
listen
(&self)
src/lib.rs:307
↓ 25 callers
Method
get
(&self)
src/lib.rs:1429
↓ 17 callers
Method
insert
Add a new listener to the list. Does nothing if the list is already registered.
src/slab.rs:51
↓ 12 callers
Method
take
Take the value out.
src/slab/node.rs:240
↓ 12 callers
Method
try_lock
Locks the list.
src/slab.rs:34
↓ 9 callers
Method
lock
Blocks until a lock is acquired.
examples/mutex.rs:47
↓ 9 callers
Method
notify
(&self, notify: impl Notification<Tag = T>)
src/slab.rs:130
↓ 9 callers
Method
replace
Swap the value out.
src/slab/node.rs:220
↓ 6 callers
Method
insert
Add a new listener to the list.
src/intrusive.rs:153
↓ 6 callers
Method
into_task
Converts this task reference to a task by cloning.
src/lib.rs:1350
↓ 6 callers
Method
notify
(&self, notify: impl IntoNotification<Tag = T>)
src/lib.rs:449
↓ 6 callers
Method
queue_update
Force a queue update.
src/slab.rs:43
↓ 6 callers
Method
try_lock
Attempts to acquire a lock.
examples/mutex.rs:39
↓ 6 callers
Method
wake
(self)
src/lib.rs:1306
↓ 5 callers
Method
as_task_ref
(&self)
src/lib.rs:1298
↓ 5 callers
Method
into_notification
(self)
src/notify.rs:552
↓ 5 callers
Method
remove
Remove a listener from the list.
src/slab.rs:76
↓ 5 callers
Method
state
(&self)
src/slab.rs:426
↓ 4 callers
Method
count
(&self, _: Internal)
src/notify.rs:85
↓ 4 callers
Method
into_inner
no_std does not need this
src/lib.rs:1434
↓ 4 callers
Method
is_additional
(&self, _: Internal)
src/notify.rs:77
↓ 4 callers
Method
next
(&self)
src/slab.rs:440
↓ 4 callers
Method
notified
(self)
src/lib.rs:1251
↓ 4 callers
Method
remove
Remove a listener from the list.
src/intrusive.rs:188
↓ 4 callers
Method
with_inner
(&self, f: impl FnOnce(&mut Inner<T>) -> R)
src/intrusive.rs:95
↓ 3 callers
Method
deref
(&self)
src/intrusive.rs:104
↓ 3 callers
Method
inner
Returns a raw, initialized pointer to the inner state. This returns a raw pointer instead of reference because `from_raw` requires raw/mut provenance
src/lib.rs:470
↓ 3 callers
Method
is_notified
(&self)
src/lib.rs:268
↓ 3 callers
Method
register
Register a task to be notified when the event is triggered. Returns `true` if the listener was already notified, and `false` otherwise. If the listen
src/slab.rs:160
↓ 3 callers
Method
try_inner
(&self)
src/lib.rs:461
↓ 3 callers
Method
will_wake
(self, other: Self)
src/lib.rs:1337
↓ 2 callers
Method
additional
Convert this value into an additional notification. By default, notifications ignore listeners that are already notified. Generally, this happens whe
src/notify.rs:424
↓ 2 callers
Method
apply
Apply the node to the list.
src/slab/node.rs:123
↓ 2 callers
Method
next_tag
(&mut self, _: Internal)
src/notify.rs:89
↓ 2 callers
Method
notify
(&self, notify: impl Notification<Tag = T>)
src/intrusive.rs:198
↓ 2 callers
Method
prev
(&self)
src/slab.rs:433
↓ 2 callers
Method
relaxed
Don't emit a fence for this notification. Usually, notifications emit a `SeqCst` atomic fence before any listeners are woken up. This ensures that no
src/notify.rs:464
↓ 2 callers
Method
status
Determine if we are still queued. Returns `Some` with the entry ID if we are no longer queued.
src/slab/node.rs:169
↓ 2 callers
Function
update_notified
(slot: &crate::sync::atomic::AtomicUsize, list: &Inner<T>)
src/intrusive.rs:363
↓ 2 callers
Method
wait_with_parker
( self: Pin<&mut Self>, deadline: Option<Instant>, parker: &Parker, unparker:
src/lib.rs:1126
↓ 1 callers
Method
cancel
Mark this listener as cancelled, indicating that it should not be inserted into the list. If this listener was already inserted into the list, return
src/slab/node.rs:193
↓ 1 callers
Function
entry
()
examples/mutex.rs:139
↓ 1 callers
Method
fence
(&self, _: Internal)
src/notify.rs:81
↓ 1 callers
Function
full_fence
()
src/notify.rs:581
↓ 1 callers
Method
process_nodes
(&mut self)
src/slab.rs:272
↓ 1 callers
Method
process_nodes_slow
(&mut self, start_node: Node<T>)
src/slab.rs:259
↓ 1 callers
Method
total_listeners
(&self)
src/intrusive.rs:81
↓ 1 callers
Method
try_lock_slow
(&self)
src/slab.rs:779
↓ 1 callers
Method
try_total_listeners
Try to get the total number of listeners without blocking.
src/slab.rs:240
↓ 1 callers
Method
with_mut
(&mut self, f: F)
src/lib.rs:1394
Function
__test_send_and_sync
()
src/lib.rs:1448
Function
_assert_send
()
src/lib.rs:1449
Function
_assert_sync
()
src/lib.rs:1450
Function
bench_events
(c: &mut Criterion)
benches/bench.rs:8
Method
default
()
src/lib.rs:220
Method
default
()
src/slab/node.rs:22
Method
deref
(&self)
src/slab.rs:283
Method
deref
(&self)
src/lib.rs:1409
Method
deref
(&self)
examples/mutex.rs:121
Method
deref_mut
(&mut self)
src/slab.rs:289
Method
deref_mut
std code does not need this
src/lib.rs:1414
Method
deref_mut
(&mut self)
src/intrusive.rs:110
Method
deref_mut
(&mut self)
examples/mutex.rs:127
Method
discard
Drops this listener and discards its notification (if any) without notifying another active listener.
src/lib.rs:1175
Method
drop
(&mut self)
src/slab.rs:295
Method
drop
(&mut self)
src/lib.rs:732
Method
drop
(&mut self)
src/intrusive.rs:116
Method
drop
(&mut self)
src/slab/node.rs:246
Method
drop
(&mut self)
examples/mutex.rs:133
Function
drop_non_notified
()
src/intrusive.rs:436
Function
drop_non_notified
()
tests/notify.rs:135
Function
drop_non_notified
()
tests/loom.rs:150
Function
drop_notified
()
tests/notify.rs:90
Function
drop_notified
()
tests/loom.rs:99
Function
drop_notified2
()
tests/notify.rs:104
Function
drop_notified2
()
tests/loom.rs:115
Function
drop_notified_additional
()
tests/notify.rs:118
Function
drop_notified_additional
()
tests/loom.rs:131
Method
eq
(&self, other: &Self)
src/slab.rs:370
Method
eq
(&self, other: &Self)
src/lib.rs:1318
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/notify.rs:217
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/slab.rs:364
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/lib.rs:191
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
src/slab/node.rs:28
Function
insert
()
src/intrusive.rs:415
Function
is_notified
(listener: &mut EventListener)
tests/notify.rs:12
Function
is_notified
(listener: &mut EventListener)
tests/loom.rs:13
Method
listener
(&self)
src/lib.rs:939
Method
listener
()
src/slab/node.rs:107
Method
listener_mut
(&mut self)
src/lib.rs:944
Function
listener_slab_notify
()
src/slab.rs:933
Function
listener_slab_notify_prop
()
src/slab.rs:1125
Function
listener_slab_register
()
src/slab.rs:1018
Method
lock_async
Acquires a lock asynchronously.
examples/mutex.rs:91
Method
lock_timeout
Blocks until a lock is acquired or the timeout is reached.
examples/mutex.rs:68
Function
main
()
examples/mutex.rs:181
Method
new
Create a new `Notify` with the given number of listeners to notify.
src/notify.rs:69
Method
new
()
src/slab.rs:232
Method
new
()
src/lib.rs:148
Method
new
Create a new, empty event listener list.
src/intrusive.rs:49
next →
1–100 of 129, ranked by callers