pub struct HealthReporter { /* private fields */ }Expand description
Health reporter for system health monitoring
Implementations§
Source§impl HealthReporter
impl HealthReporter
Sourcepub fn with_config(config: HealthConfig) -> Self
pub fn with_config(config: HealthConfig) -> Self
Create a new health reporter with configuration
Sourcepub async fn initialize(&mut self) -> Result<(), String>
pub async fn initialize(&mut self) -> Result<(), String>
Initialize the health reporter
Sourcepub async fn get_status(&self) -> Result<HealthStatus, String>
pub async fn get_status(&self) -> Result<HealthStatus, String>
Get system health status
Trait Implementations§
Source§impl Clone for HealthReporter
impl Clone for HealthReporter
Source§fn clone(&self) -> HealthReporter
fn clone(&self) -> HealthReporter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HealthReporter
impl !RefUnwindSafe for HealthReporter
impl Send for HealthReporter
impl Sync for HealthReporter
impl Unpin for HealthReporter
impl !UnwindSafe for HealthReporter
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