pub struct BotHealth {
pub healthy: bool,
pub shutting_down: bool,
pub services: Vec<ServiceLifecycleSnapshot>,
pub brains: Vec<BrainHealthSnapshot>,
}Expand description
Aggregated health snapshot returned by BotHandle::health.
Fields§
§healthy: booltrue iff every brain reports healthy AND no service is in a
non-alive (terminated) state.
shutting_down: boolWhether shutdown has been triggered (signal or handle.shutdown()).
services: Vec<ServiceLifecycleSnapshot>Per-service lifecycle snapshots from the supervisor.
brains: Vec<BrainHealthSnapshot>One entry per brain, in the order they were passed to Bot::new.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BotHealth
impl RefUnwindSafe for BotHealth
impl Send for BotHealth
impl Sync for BotHealth
impl Unpin for BotHealth
impl UnsafeUnpin for BotHealth
impl UnwindSafe for BotHealth
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more