pub struct MemoryStatsBuilder { /* private fields */ }
Expand description
Builder for MemoryStats
.
Implementations§
Source§impl MemoryStatsBuilder
impl MemoryStatsBuilder
pub fn cache(&mut self, value: u64) -> &mut Self
pub fn swap(&mut self, value: u64) -> &mut Self
pub fn usage(&mut self, value: u64) -> &mut Self
pub fn max_usage(&mut self, value: u64) -> &mut Self
pub fn kernel_usage(&mut self, value: u64) -> &mut Self
pub fn kernel_max_usage(&mut self, value: u64) -> &mut Self
pub fn measured(&mut self, value: Vec<String>) -> &mut Self
pub fn rss(&mut self, value: u64) -> &mut Self
Sourcepub fn build(&self) -> Result<MemoryStats, MemoryStatsBuilderError>
pub fn build(&self) -> Result<MemoryStats, MemoryStatsBuilderError>
Trait Implementations§
Source§impl Clone for MemoryStatsBuilder
impl Clone for MemoryStatsBuilder
Source§fn clone(&self) -> MemoryStatsBuilder
fn clone(&self) -> MemoryStatsBuilder
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 moreAuto Trait Implementations§
impl Freeze for MemoryStatsBuilder
impl RefUnwindSafe for MemoryStatsBuilder
impl Send for MemoryStatsBuilder
impl Sync for MemoryStatsBuilder
impl Unpin for MemoryStatsBuilder
impl UnwindSafe for MemoryStatsBuilder
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