Skip to main content

StatusReporter

Trait StatusReporter 

Source
pub trait StatusReporter: Send + Sync {
    // Required methods
    fn capability_name(&self) -> &'static str;
    fn is_running(&self) -> bool;

    // Provided method
    fn status_detail(&self) -> Option<String> { ... }
}
Expand description

Trait for types that can report a capability status summary.

Each domain core implements this so the binary crate can build a unified status view without coupling domains.

Required Methods§

Source

fn capability_name(&self) -> &'static str

Machine-readable capability name (e.g. “mdns”, “dns”, “health”).

Source

fn is_running(&self) -> bool

Whether the capability is currently operational.

Provided Methods§

Source

fn status_detail(&self) -> Option<String>

Optional human-readable status detail.

Implementors§