Skip to main content

ComponentStatusReporter

Trait ComponentStatusReporter 

pub trait ComponentStatusReporter {
    // Required method
    fn component_status(&self) -> ComponentStatus;
}
Expand description

Trait for components that can report their own health status.

Implementors track their health internally and return the current ComponentStatus on demand. This enables the Has* accessor traits to delegate status queries directly to the underlying component rather than computing status from global node state.

Required Methods§

fn component_status(&self) -> ComponentStatus

Returns the current health status of this component.

Implementations on Foreign Types§

§

impl<'a, T> ComponentStatusReporter for &'a T
where T: 'a + ComponentStatusReporter + ?Sized,

§

impl<T> ComponentStatusReporter for Arc<T>

Implementors§