#[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 get_user(&self) -> &Option<f64>
pub fn get_user(&self) -> &Option<f64>
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 get_nice(&self) -> &Option<f64>
pub fn get_nice(&self) -> &Option<f64>
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 get_system(&self) -> &Option<f64>
pub fn get_system(&self) -> &Option<f64>
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 get_idle(&self) -> &Option<f64>
pub fn get_idle(&self) -> &Option<f64>
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 get_io_wait(&self) -> &Option<f64>
pub fn get_io_wait(&self) -> &Option<f64>
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 get_irq(&self) -> &Option<f64>
pub fn get_irq(&self) -> &Option<f64>
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 get_soft_irq(&self) -> &Option<f64>
pub fn get_soft_irq(&self) -> &Option<f64>
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 get_privileged(&self) -> &Option<f64>
pub fn get_privileged(&self) -> &Option<f64>
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 for CpuUtilizationBuilder
impl PartialEq for CpuUtilizationBuilder
impl StructuralPartialEq for CpuUtilizationBuilder
Auto Trait Implementations§
impl Freeze for CpuUtilizationBuilder
impl RefUnwindSafe for CpuUtilizationBuilder
impl Send for CpuUtilizationBuilder
impl Sync for CpuUtilizationBuilder
impl Unpin for CpuUtilizationBuilder
impl UnwindSafe for CpuUtilizationBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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