pub struct SystemResourceMonitor { /* private fields */ }Expand description
System resource monitor implementation
Implementations§
Source§impl SystemResourceMonitor
impl SystemResourceMonitor
Sourcepub fn new(config: MonitorConfig) -> Self
pub fn new(config: MonitorConfig) -> Self
Create a new system resource monitor
Trait Implementations§
Source§impl ResourceMonitor for SystemResourceMonitor
impl ResourceMonitor for SystemResourceMonitor
Source§fn collect_metrics(&self) -> ResourceMetrics
fn collect_metrics(&self) -> ResourceMetrics
Collect resource metrics
Source§fn check_health(&self) -> ResourceHealth
fn check_health(&self) -> ResourceHealth
Check resource health
Source§fn get_config(&self) -> MonitorConfig
fn get_config(&self) -> MonitorConfig
Get monitor configuration
Source§fn update_config(&mut self, config: MonitorConfig) -> SklResult<()>
fn update_config(&mut self, config: MonitorConfig) -> SklResult<()>
Update monitor configuration
Auto Trait Implementations§
impl Freeze for SystemResourceMonitor
impl RefUnwindSafe for SystemResourceMonitor
impl Send for SystemResourceMonitor
impl Sync for SystemResourceMonitor
impl Unpin for SystemResourceMonitor
impl UnwindSafe for SystemResourceMonitor
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more