pub struct MemoryStats {
pub rss: Option<i32>,
pub cache: Option<i32>,
pub swap: Option<i32>,
pub usage: Option<i32>,
pub max_usage: Option<i32>,
pub kernel_usage: Option<i32>,
pub kernel_max_usage: Option<i32>,
pub measured: Option<Vec<String>>,
}
Fields§
§rss: Option<i32>
§cache: Option<i32>
§swap: Option<i32>
§usage: Option<i32>
§max_usage: Option<i32>
§kernel_usage: Option<i32>
§kernel_max_usage: Option<i32>
§measured: Option<Vec<String>>
Implementations§
Source§impl MemoryStats
impl MemoryStats
pub fn new() -> MemoryStats
Trait Implementations§
Source§impl Clone for MemoryStats
impl Clone for MemoryStats
Source§fn clone(&self) -> MemoryStats
fn clone(&self) -> MemoryStats
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MemoryStats
impl Debug for MemoryStats
Source§impl<'de> Deserialize<'de> for MemoryStats
impl<'de> Deserialize<'de> for MemoryStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MemoryStats
impl PartialEq for MemoryStats
Source§impl Serialize for MemoryStats
impl Serialize for MemoryStats
impl StructuralPartialEq for MemoryStats
Auto Trait Implementations§
impl Freeze for MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnwindSafe for MemoryStats
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