pub struct OverloadThreshold {
pub cpu_percent: f32,
pub memory_percent: f32,
pub load_avg: f32,
}Expand description
Thresholds that define an “overloaded” system.
Fields§
§cpu_percent: f32Maximum CPU percentage before considered overloaded.
memory_percent: f32Maximum memory percentage before considered overloaded.
load_avg: f32Maximum load average before considered overloaded.
Trait Implementations§
Source§impl Clone for OverloadThreshold
impl Clone for OverloadThreshold
Source§fn clone(&self) -> OverloadThreshold
fn clone(&self) -> OverloadThreshold
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 moreimpl Copy for OverloadThreshold
Source§impl Debug for OverloadThreshold
impl Debug for OverloadThreshold
Auto Trait Implementations§
impl Freeze for OverloadThreshold
impl RefUnwindSafe for OverloadThreshold
impl Send for OverloadThreshold
impl Sync for OverloadThreshold
impl Unpin for OverloadThreshold
impl UnsafeUnpin for OverloadThreshold
impl UnwindSafe for OverloadThreshold
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