Skip to main content

Module broadcast

Module broadcast 

Expand description

Process-wide broadcast channel for the canonical log stream.

Functions§

clear_broadcast_hook
Remove the broadcast sender (tests, orderly shutdown).
current_broadcast_hook
Read the current broadcast sender, if any.
set_broadcast_hook
Install a process-wide broadcast sender. Calling again replaces the previous one (the old sender will be dropped — its Receivers will see RecvError::Closed on their next read).
subscribe
Subscribe to the broadcast stream. Returns None when no sender has been installed yet (e.g. when running tests that never wired the gateway). The receiver yields every event emitted via crate::record_event after the subscribe call.

Type Aliases§

LogBroadcastSender
Type alias for the canonical log broadcast sender.