Subscribe All • Rust AI Agent SDK

subscribe_all: Subscribe to all events on the global bus

subscribe_all

Function

</div>

This function is defined in the bus module.

Subscribe to all events on the global bus

Signature

python
def subscribe_all(handler: F) -> usize
where
    F: Fn(&Event) + Send + Sync + 'static,

Parameters

ParamField F

No description available.

Returns

ResponseField usize where F: Fn(&Event) + Send + Sync + 'static,

The result of the operation.

Uses

  • get_event_bus
  • subscribe_all

Source

View on GitHub

praisonai/src/bus/mod.rs at line 417