pub struct CpuStatsBuilder { /* private fields */ }
Expand description
Builder for CpuStats
.
Implementations§
Source§impl CpuStatsBuilder
impl CpuStatsBuilder
pub fn system_mode(&mut self, value: f64) -> &mut Self
pub fn user_mode(&mut self, value: f64) -> &mut Self
pub fn total_ticks(&mut self, value: f64) -> &mut Self
pub fn throttled_periods(&mut self, value: u64) -> &mut Self
pub fn throttled_time(&mut self, value: u64) -> &mut Self
pub fn percent(&mut self, value: f64) -> &mut Self
pub fn measured(&mut self, value: Vec<String>) -> &mut Self
Trait Implementations§
Source§impl Clone for CpuStatsBuilder
impl Clone for CpuStatsBuilder
Source§fn clone(&self) -> CpuStatsBuilder
fn clone(&self) -> CpuStatsBuilder
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CpuStatsBuilder
impl RefUnwindSafe for CpuStatsBuilder
impl Send for CpuStatsBuilder
impl Sync for CpuStatsBuilder
impl Unpin for CpuStatsBuilder
impl UnwindSafe for CpuStatsBuilder
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