#[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 for SystemStatusBuilder
impl PartialEq for SystemStatusBuilder
impl StructuralPartialEq for SystemStatusBuilder
Auto Trait Implementations§
impl Freeze for SystemStatusBuilder
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
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)
🔬This is a nightly-only experimental API. (
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.