#[non_exhaustive]pub struct CpuUtilizationBuilder { /* private fields */ }Expand description
A builder for CpuUtilization.
Implementations§
source§impl CpuUtilizationBuilder
impl CpuUtilizationBuilder
sourcepub fn user(self, input: f64) -> Self
pub fn user(self, input: f64) -> Self
Percentage of time that the CPU has spent in the User state over the last 10 seconds.
sourcepub fn set_user(self, input: Option<f64>) -> Self
pub fn set_user(self, input: Option<f64>) -> Self
Percentage of time that the CPU has spent in the User state over the last 10 seconds.
sourcepub fn nice(self, input: f64) -> Self
pub fn nice(self, input: f64) -> Self
Available on Linux environments only.
Percentage of time that the CPU has spent in the Nice state over the last 10 seconds.
sourcepub fn set_nice(self, input: Option<f64>) -> Self
pub fn set_nice(self, input: Option<f64>) -> Self
Available on Linux environments only.
Percentage of time that the CPU has spent in the Nice state over the last 10 seconds.
sourcepub fn system(self, input: f64) -> Self
pub fn system(self, input: f64) -> Self
Available on Linux environments only.
Percentage of time that the CPU has spent in the System state over the last 10 seconds.
sourcepub fn set_system(self, input: Option<f64>) -> Self
pub fn set_system(self, input: Option<f64>) -> Self
Available on Linux environments only.
Percentage of time that the CPU has spent in the System state over the last 10 seconds.
sourcepub fn idle(self, input: f64) -> Self
pub fn idle(self, input: f64) -> Self
Percentage of time that the CPU has spent in the Idle state over the last 10 seconds.
sourcepub fn set_idle(self, input: Option<f64>) -> Self
pub fn set_idle(self, input: Option<f64>) -> Self
Percentage of time that the CPU has spent in the Idle state over the last 10 seconds.
sourcepub fn io_wait(self, input: f64) -> Self
pub fn io_wait(self, input: f64) -> Self
Available on Linux environments only.
Percentage of time that the CPU has spent in the I/O Wait state over the last 10 seconds.
sourcepub fn set_io_wait(self, input: Option<f64>) -> Self
pub fn set_io_wait(self, input: Option<f64>) -> Self
Available on Linux environments only.
Percentage of time that the CPU has spent in the I/O Wait state over the last 10 seconds.
sourcepub fn irq(self, input: f64) -> Self
pub fn irq(self, input: f64) -> Self
Available on Linux environments only.
Percentage of time that the CPU has spent in the IRQ state over the last 10 seconds.
sourcepub fn set_irq(self, input: Option<f64>) -> Self
pub fn set_irq(self, input: Option<f64>) -> Self
Available on Linux environments only.
Percentage of time that the CPU has spent in the IRQ state over the last 10 seconds.
sourcepub fn soft_irq(self, input: f64) -> Self
pub fn soft_irq(self, input: f64) -> Self
Available on Linux environments only.
Percentage of time that the CPU has spent in the SoftIRQ state over the last 10 seconds.
sourcepub fn set_soft_irq(self, input: Option<f64>) -> Self
pub fn set_soft_irq(self, input: Option<f64>) -> Self
Available on Linux environments only.
Percentage of time that the CPU has spent in the SoftIRQ state over the last 10 seconds.
sourcepub fn privileged(self, input: f64) -> Self
pub fn privileged(self, input: f64) -> Self
Available on Windows environments only.
Percentage of time that the CPU has spent in the Privileged state over the last 10 seconds.
sourcepub fn set_privileged(self, input: Option<f64>) -> Self
pub fn set_privileged(self, input: Option<f64>) -> Self
Available on Windows environments only.
Percentage of time that the CPU has spent in the Privileged state over the last 10 seconds.
sourcepub fn build(self) -> CpuUtilization
pub fn build(self) -> CpuUtilization
Consumes the builder and constructs a CpuUtilization.
Trait Implementations§
source§impl Clone for CpuUtilizationBuilder
impl Clone for CpuUtilizationBuilder
source§fn clone(&self) -> CpuUtilizationBuilder
fn clone(&self) -> CpuUtilizationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for CpuUtilizationBuilder
impl Debug for CpuUtilizationBuilder
source§impl Default for CpuUtilizationBuilder
impl Default for CpuUtilizationBuilder
source§fn default() -> CpuUtilizationBuilder
fn default() -> CpuUtilizationBuilder
source§impl PartialEq<CpuUtilizationBuilder> for CpuUtilizationBuilder
impl PartialEq<CpuUtilizationBuilder> for CpuUtilizationBuilder
source§fn eq(&self, other: &CpuUtilizationBuilder) -> bool
fn eq(&self, other: &CpuUtilizationBuilder) -> bool
self and other values to be equal, and is used
by ==.