Expand description
Cheap cloneable handle into a running Bot.
Host services hold a BotHandle to:
- Query aggregated health via
BotHandle::health. - Trigger shutdown via
BotHandle::shutdown. - Await shutdown via
BotHandle::await_shutdown. - Feed realised trade outcomes into the risk gates via
BotHandle::record_trade_outcome.
The handle is Clone so multiple parts of the host service (an HTTP
handler, a metrics endpoint, a shutdown coordinator) can hold one
without contention. All shared state is Arc-wrapped, so a clone is
an atomic-ref-count bump.
Structs§
- BotHandle
- Cheap cloneable handle into a running
Bot. - BotHealth
- Aggregated health snapshot returned by
BotHandle::health. - Brain
Health Snapshot - Per-brain health information surfaced in
BotHealth::brains.