pub trait StatusSource: Send + Sync {
// Required methods
fn get_status(&self) -> Value;
fn get_name(&self) -> &str;
fn refresh_interval(&self) -> Duration;
}Expand description
Trait for pluggable status sources.
Required Methods§
Sourcefn get_status(&self) -> Value
fn get_status(&self) -> Value
Return current status as JSON.
Sourcefn refresh_interval(&self) -> Duration
fn refresh_interval(&self) -> Duration
How often this source should be polled.