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 seeRecvError::Closedon their next read). - subscribe
- Subscribe to the broadcast stream. Returns
Nonewhen no sender has been installed yet (e.g. when running tests that never wired the gateway). The receiver yields every event emitted viacrate::record_eventafter the subscribe call.
Type Aliases§
- LogBroadcast
Sender - Type alias for the canonical log broadcast sender.