Skip to main content

Module handle

Module handle 

Source
Expand description

Cheap cloneable handle into a running Bot.

Host services hold a BotHandle to:

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.
BrainHealthSnapshot
Per-brain health information surfaced in BotHealth::brains.