pub struct MemoryStat {
pub rss: u64,
pub cache: u64,
pub mapped_file: u64,
pub anon: u64,
pub swap: u64,
}Expand description
Memory statistics counters.
Fields§
§rss: u64Resident set size in bytes.
cache: u64Page cache usage in bytes.
mapped_file: u64Memory-mapped file usage in bytes.
anon: u64Anonymous memory usage in bytes.
swap: u64Swap usage in bytes.
Implementations§
Source§impl MemoryStat
impl MemoryStat
Trait Implementations§
Source§impl Clone for MemoryStat
impl Clone for MemoryStat
Source§fn clone(&self) -> MemoryStat
fn clone(&self) -> MemoryStat
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryStat
impl Debug for MemoryStat
Source§impl Default for MemoryStat
impl Default for MemoryStat
Source§fn default() -> MemoryStat
fn default() -> MemoryStat
Returns the “default value” for a type. Read more
Source§impl PartialEq for MemoryStat
impl PartialEq for MemoryStat
impl Copy for MemoryStat
impl Eq for MemoryStat
impl StructuralPartialEq for MemoryStat
Auto Trait Implementations§
impl Freeze for MemoryStat
impl RefUnwindSafe for MemoryStat
impl Send for MemoryStat
impl Sync for MemoryStat
impl Unpin for MemoryStat
impl UnwindSafe for MemoryStat
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)