pub struct ResourceMonitorConfig {
pub interval_secs: u64,
pub history_max: usize,
pub cpu_threshold: f32,
pub memory_threshold: f32,
pub load_threshold: f32,
}Expand description
Resource monitor configuration.
Fields§
§interval_secs: u64Snapshot interval in seconds.
history_max: usizeMaximum history entries.
cpu_threshold: f32CPU threshold for overload.
memory_threshold: f32Memory threshold for overload (percentage).
load_threshold: f32Load average threshold for overload.
Trait Implementations§
Source§impl Clone for ResourceMonitorConfig
impl Clone for ResourceMonitorConfig
Source§fn clone(&self) -> ResourceMonitorConfig
fn clone(&self) -> ResourceMonitorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceMonitorConfig
impl Debug for ResourceMonitorConfig
Source§impl Default for ResourceMonitorConfig
impl Default for ResourceMonitorConfig
Source§impl<'de> Deserialize<'de> for ResourceMonitorConfig
impl<'de> Deserialize<'de> for ResourceMonitorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResourceMonitorConfig
impl RefUnwindSafe for ResourceMonitorConfig
impl Send for ResourceMonitorConfig
impl Sync for ResourceMonitorConfig
impl Unpin for ResourceMonitorConfig
impl UnsafeUnpin for ResourceMonitorConfig
impl UnwindSafe for ResourceMonitorConfig
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