Skip to main content

InboxNotifier

Type Alias InboxNotifier 

Source
pub type InboxNotifier = Arc<dyn Fn() + Send + Sync>;
Expand description

A wake callback fired on the inbox’s empty→non-empty transition (R3, §1.2(2)).

The server installs one that fires the CONNECTION scheduler’s READY marker, so a publish into a parked connection’s inbox wakes it. It is called from the PUBLISHING actor’s slice (the channel actor for local delivery, the subscriber process for a remote frame), so it must be cheap and non-blocking — a single enqueue_atom_message. None (no notifier installed) is the standalone library / test case: nothing to wake, delivery still lands in the inbox.

Aliased Type§

pub struct InboxNotifier { /* private fields */ }