#[non_exhaustive]pub struct SystemStatusBuilder { /* private fields */ }
Expand description
A builder for SystemStatus
.
Implementations§
source§impl SystemStatusBuilder
impl SystemStatusBuilder
sourcepub fn cpu_utilization(self, input: CpuUtilization) -> Self
pub fn cpu_utilization(self, input: CpuUtilization) -> Self
CPU utilization metrics for the instance.
sourcepub fn set_cpu_utilization(self, input: Option<CpuUtilization>) -> Self
pub fn set_cpu_utilization(self, input: Option<CpuUtilization>) -> Self
CPU utilization metrics for the instance.
sourcepub fn get_cpu_utilization(&self) -> &Option<CpuUtilization>
pub fn get_cpu_utilization(&self) -> &Option<CpuUtilization>
CPU utilization metrics for the instance.
sourcepub fn load_average(self, input: f64) -> Self
pub fn load_average(self, input: f64) -> Self
Appends an item to load_average
.
To override the contents of this collection use set_load_average
.
Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics.
sourcepub fn set_load_average(self, input: Option<Vec<f64>>) -> Self
pub fn set_load_average(self, input: Option<Vec<f64>>) -> Self
Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics.
sourcepub fn get_load_average(&self) -> &Option<Vec<f64>>
pub fn get_load_average(&self) -> &Option<Vec<f64>>
Load average in the last 1-minute, 5-minute, and 15-minute periods. For more information, see Operating System Metrics.
sourcepub fn build(self) -> SystemStatus
pub fn build(self) -> SystemStatus
Consumes the builder and constructs a SystemStatus
.
Trait Implementations§
source§impl Clone for SystemStatusBuilder
impl Clone for SystemStatusBuilder
source§fn clone(&self) -> SystemStatusBuilder
fn clone(&self) -> SystemStatusBuilder
Returns a copy of the value. Read more
1.0.0 · 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 SystemStatusBuilder
impl Debug for SystemStatusBuilder
source§impl Default for SystemStatusBuilder
impl Default for SystemStatusBuilder
source§fn default() -> SystemStatusBuilder
fn default() -> SystemStatusBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<SystemStatusBuilder> for SystemStatusBuilder
impl PartialEq<SystemStatusBuilder> for SystemStatusBuilder
source§fn eq(&self, other: &SystemStatusBuilder) -> bool
fn eq(&self, other: &SystemStatusBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SystemStatusBuilder
Auto Trait Implementations§
impl RefUnwindSafe for SystemStatusBuilder
impl Send for SystemStatusBuilder
impl Sync for SystemStatusBuilder
impl Unpin for SystemStatusBuilder
impl UnwindSafe for SystemStatusBuilder
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