pub struct MacOSMemoryInfo {
pub physical_memory: u64,
pub user_memory: u64,
pub wired_memory: u64,
pub compressed_memory: u64,
pub memory_pressure: String,
pub swap_usage: u64,
}Expand description
macOS-specific memory information
Fields§
§physical_memory: u64§user_memory: u64§wired_memory: u64§compressed_memory: u64§memory_pressure: String§swap_usage: u64Implementations§
Source§impl MacOSMemoryInfo
impl MacOSMemoryInfo
Sourcepub fn get_memory_modules() -> Result<Vec<MacOSMemoryModule>>
pub fn get_memory_modules() -> Result<Vec<MacOSMemoryModule>>
Get detailed memory module information using system_profiler
Trait Implementations§
Source§impl Clone for MacOSMemoryInfo
impl Clone for MacOSMemoryInfo
Source§fn clone(&self) -> MacOSMemoryInfo
fn clone(&self) -> MacOSMemoryInfo
Returns a duplicate 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 MacOSMemoryInfo
impl RefUnwindSafe for MacOSMemoryInfo
impl Send for MacOSMemoryInfo
impl Sync for MacOSMemoryInfo
impl Unpin for MacOSMemoryInfo
impl UnwindSafe for MacOSMemoryInfo
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