MCPcopy Create free account

hub / github.com/smol-rs/event-listener / functions

Functions129 in github.com/smol-rs/event-listener

↓ 53 callersMethodlisten
(&self)
src/lib.rs:307
↓ 25 callersMethodget
(&self)
src/lib.rs:1429
↓ 17 callersMethodinsert
Add a new listener to the list. Does nothing if the list is already registered.
src/slab.rs:51
↓ 12 callersMethodtake
Take the value out.
src/slab/node.rs:240
↓ 12 callersMethodtry_lock
Locks the list.
src/slab.rs:34
↓ 9 callersMethodlock
Blocks until a lock is acquired.
examples/mutex.rs:47
↓ 9 callersMethodnotify
(&self, notify: impl Notification<Tag = T>)
src/slab.rs:130
↓ 9 callersMethodreplace
Swap the value out.
src/slab/node.rs:220
↓ 6 callersMethodinsert
Add a new listener to the list.
src/intrusive.rs:153
↓ 6 callersMethodinto_task
Converts this task reference to a task by cloning.
src/lib.rs:1350
↓ 6 callersMethodnotify
(&self, notify: impl IntoNotification<Tag = T>)
src/lib.rs:449
↓ 6 callersMethodqueue_update
Force a queue update.
src/slab.rs:43
↓ 6 callersMethodtry_lock
Attempts to acquire a lock.
examples/mutex.rs:39
↓ 6 callersMethodwake
(self)
src/lib.rs:1306
↓ 5 callersMethodas_task_ref
(&self)
src/lib.rs:1298
↓ 5 callersMethodinto_notification
(self)
src/notify.rs:552
↓ 5 callersMethodremove
Remove a listener from the list.
src/slab.rs:76
↓ 5 callersMethodstate
(&self)
src/slab.rs:426
↓ 4 callersMethodcount
(&self, _: Internal)
src/notify.rs:85
↓ 4 callersMethodinto_inner
no_std does not need this
src/lib.rs:1434
↓ 4 callersMethodis_additional
(&self, _: Internal)
src/notify.rs:77
↓ 4 callersMethodnext
(&self)
src/slab.rs:440
↓ 4 callersMethodnotified
(self)
src/lib.rs:1251
↓ 4 callersMethodremove
Remove a listener from the list.
src/intrusive.rs:188
↓ 4 callersMethodwith_inner
(&self, f: impl FnOnce(&mut Inner<T>) -> R)
src/intrusive.rs:95
↓ 3 callersMethodderef
(&self)
src/intrusive.rs:104
↓ 3 callersMethodinner
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 callersMethodis_notified
(&self)
src/lib.rs:268
↓ 3 callersMethodregister
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 callersMethodtry_inner
(&self)
src/lib.rs:461
↓ 3 callersMethodwill_wake
(self, other: Self)
src/lib.rs:1337
↓ 2 callersMethodadditional
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 callersMethodapply
Apply the node to the list.
src/slab/node.rs:123
↓ 2 callersMethodnext_tag
(&mut self, _: Internal)
src/notify.rs:89
↓ 2 callersMethodnotify
(&self, notify: impl Notification<Tag = T>)
src/intrusive.rs:198
↓ 2 callersMethodprev
(&self)
src/slab.rs:433
↓ 2 callersMethodrelaxed
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 callersMethodstatus
Determine if we are still queued. Returns `Some` with the entry ID if we are no longer queued.
src/slab/node.rs:169
↓ 2 callersFunctionupdate_notified
(slot: &crate::sync::atomic::AtomicUsize, list: &Inner<T>)
src/intrusive.rs:363
↓ 2 callersMethodwait_with_parker
( self: Pin<&mut Self>, deadline: Option<Instant>, parker: &Parker, unparker:
src/lib.rs:1126
↓ 1 callersMethodcancel
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 callersFunctionentry
()
examples/mutex.rs:139
↓ 1 callersMethodfence
(&self, _: Internal)
src/notify.rs:81
↓ 1 callersFunctionfull_fence
()
src/notify.rs:581
↓ 1 callersMethodprocess_nodes
(&mut self)
src/slab.rs:272
↓ 1 callersMethodprocess_nodes_slow
(&mut self, start_node: Node<T>)
src/slab.rs:259
↓ 1 callersMethodtotal_listeners
(&self)
src/intrusive.rs:81
↓ 1 callersMethodtry_lock_slow
(&self)
src/slab.rs:779
↓ 1 callersMethodtry_total_listeners
Try to get the total number of listeners without blocking.
src/slab.rs:240
↓ 1 callersMethodwith_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
Functionbench_events
(c: &mut Criterion)
benches/bench.rs:8
Methoddefault
()
src/lib.rs:220
Methoddefault
()
src/slab/node.rs:22
Methodderef
(&self)
src/slab.rs:283
Methodderef
(&self)
src/lib.rs:1409
Methodderef
(&self)
examples/mutex.rs:121
Methodderef_mut
(&mut self)
src/slab.rs:289
Methodderef_mut
std code does not need this
src/lib.rs:1414
Methodderef_mut
(&mut self)
src/intrusive.rs:110
Methodderef_mut
(&mut self)
examples/mutex.rs:127
Methoddiscard
Drops this listener and discards its notification (if any) without notifying another active listener.
src/lib.rs:1175
Methoddrop
(&mut self)
src/slab.rs:295
Methoddrop
(&mut self)
src/lib.rs:732
Methoddrop
(&mut self)
src/intrusive.rs:116
Methoddrop
(&mut self)
src/slab/node.rs:246
Methoddrop
(&mut self)
examples/mutex.rs:133
Functiondrop_non_notified
()
src/intrusive.rs:436
Functiondrop_non_notified
()
tests/notify.rs:135
Functiondrop_non_notified
()
tests/loom.rs:150
Functiondrop_notified
()
tests/notify.rs:90
Functiondrop_notified
()
tests/loom.rs:99
Functiondrop_notified2
()
tests/notify.rs:104
Functiondrop_notified2
()
tests/loom.rs:115
Functiondrop_notified_additional
()
tests/notify.rs:118
Functiondrop_notified_additional
()
tests/loom.rs:131
Methodeq
(&self, other: &Self)
src/slab.rs:370
Methodeq
(&self, other: &Self)
src/lib.rs:1318
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/notify.rs:217
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/slab.rs:364
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/lib.rs:191
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
src/slab/node.rs:28
Functioninsert
()
src/intrusive.rs:415
Functionis_notified
(listener: &mut EventListener)
tests/notify.rs:12
Functionis_notified
(listener: &mut EventListener)
tests/loom.rs:13
Methodlistener
(&self)
src/lib.rs:939
Methodlistener
()
src/slab/node.rs:107
Methodlistener_mut
(&mut self)
src/lib.rs:944
Functionlistener_slab_notify
()
src/slab.rs:933
Functionlistener_slab_notify_prop
()
src/slab.rs:1125
Functionlistener_slab_register
()
src/slab.rs:1018
Methodlock_async
Acquires a lock asynchronously.
examples/mutex.rs:91
Methodlock_timeout
Blocks until a lock is acquired or the timeout is reached.
examples/mutex.rs:68
Functionmain
()
examples/mutex.rs:181
Methodnew
Create a new `Notify` with the given number of listeners to notify.
src/notify.rs:69
Methodnew
()
src/slab.rs:232
Methodnew
()
src/lib.rs:148
Methodnew
Create a new, empty event listener list.
src/intrusive.rs:49
next →1–100 of 129, ranked by callers