pub struct SystemMemory {
pub total_bytes: u64,
pub available_bytes: u64,
pub free_bytes: u64,
pub used_bytes: u64,
}Expand description
Whole-system physical memory, in bytes.
Fields§
§total_bytes: u64§available_bytes: u64Memory available to new allocations without swapping.
free_bytes: u64Completely unused memory.
used_bytes: u64total_bytes - available_bytes.
Implementations§
Trait Implementations§
Source§impl Clone for SystemMemory
impl Clone for SystemMemory
impl Copy for SystemMemory
Source§impl Debug for SystemMemory
impl Debug for SystemMemory
Source§impl Default for SystemMemory
impl Default for SystemMemory
impl Eq for SystemMemory
Source§impl PartialEq for SystemMemory
impl PartialEq for SystemMemory
impl StructuralPartialEq for SystemMemory
Auto Trait Implementations§
impl Forget for SystemMemory
impl Freeze for SystemMemory
impl Move for SystemMemory
impl RefUnwindSafe for SystemMemory
impl Send for SystemMemory
impl Sync for SystemMemory
impl Unpin for SystemMemory
impl UnsafeUnpin for SystemMemory
impl UnwindSafe for SystemMemory
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