pub struct CpuStats {
pub system_mode: f64,
pub user_mode: f64,
pub total_ticks: f64,
pub throttled_periods: u64,
pub throttled_time: u64,
pub percent: f64,
pub measured: Vec<String>,
}
Expand description
CpuStats holds cpu usage related stats
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§system_mode: f64
§user_mode: f64
§total_ticks: f64
§throttled_periods: u64
§throttled_time: u64
§percent: f64
§measured: Vec<String>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CpuStats
impl<'de> Deserialize<'de> for CpuStats
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
impl StructuralPartialEq for CpuStats
Auto Trait Implementations§
impl Freeze for CpuStats
impl RefUnwindSafe for CpuStats
impl Send for CpuStats
impl Sync for CpuStats
impl Unpin for CpuStats
impl UnwindSafe for CpuStats
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