pub struct MemoryStats {
pub total_bytes: u64,
pub used_bytes: u64,
pub available_bytes: u64,
pub free_bytes: u64,
pub cached_bytes: Option<u64>,
pub swap_total_bytes: u64,
pub swap_used_bytes: u64,
}Expand description
Physical memory and swap usage.
Fields§
§total_bytes: u64Installed (visible) memory.
used_bytes: u64Memory in use by processes (total minus available).
available_bytes: u64Memory that can be allocated without swapping.
free_bytes: u64Completely unused memory.
cached_bytes: Option<u64>Page cache and reclaimable slab, where the platform reports it.
swap_total_bytes: u64Total swap space.
swap_used_bytes: u64Swap space in use.
Trait Implementations§
Source§impl Clone for MemoryStats
impl Clone for MemoryStats
Source§impl Debug for MemoryStats
impl Debug for MemoryStats
Source§impl Default for MemoryStats
impl Default for MemoryStats
Source§impl<'de> Deserialize<'de> for MemoryStatswhere
MemoryStats: Default,
impl<'de> Deserialize<'de> for MemoryStatswhere
MemoryStats: Default,
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
Auto Trait Implementations§
impl Freeze for MemoryStats
impl RefUnwindSafe for MemoryStats
impl Send for MemoryStats
impl Sync for MemoryStats
impl Unpin for MemoryStats
impl UnsafeUnpin 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