#[non_exhaustive]pub struct ProcessMemory {
pub resident: Bytes,
pub peak_resident: Bytes,
pub virtual_size: Bytes,
pub private: Option<Bytes>,
pub shared: Option<Bytes>,
pub swapped: Option<Bytes>,
}Expand description
This process’s memory in detail.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.resident: BytesResident in RAM.
peak_resident: BytesThe highest resident size reached.
virtual_size: BytesThe virtual address space reserved.
private: Option<Bytes>Private (anonymous) memory; Windows: the commit charge.
Shared with other processes (file-backed and shared memory).
swapped: Option<Bytes>Swapped out.
Trait Implementations§
Source§impl Clone for ProcessMemory
impl Clone for ProcessMemory
impl Copy for ProcessMemory
Source§impl Debug for ProcessMemory
impl Debug for ProcessMemory
Source§impl Default for ProcessMemory
impl Default for ProcessMemory
impl Eq for ProcessMemory
Source§impl PartialEq for ProcessMemory
impl PartialEq for ProcessMemory
impl StructuralPartialEq for ProcessMemory
Auto Trait Implementations§
impl Forget for ProcessMemory
impl Freeze for ProcessMemory
impl RefUnwindSafe for ProcessMemory
impl Send for ProcessMemory
impl Sync for ProcessMemory
impl Unpin for ProcessMemory
impl UnsafeUnpin for ProcessMemory
impl UnwindSafe for ProcessMemory
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