pub struct MemoryInfo {
pub total_bytes: u64,
pub available_bytes: u64,
}Expand description
The machine’s physical memory, in bytes.
Fields§
§total_bytes: u64§available_bytes: u64Memory that can be given to programs without swapping: free memory plus caches the kernel can drop. Not the same as “unused”.
Trait Implementations§
Source§impl Clone for MemoryInfo
impl Clone for MemoryInfo
impl Copy for MemoryInfo
Source§impl Debug for MemoryInfo
impl Debug for MemoryInfo
impl Eq for MemoryInfo
Source§impl PartialEq for MemoryInfo
impl PartialEq for MemoryInfo
impl StructuralPartialEq for MemoryInfo
Auto Trait Implementations§
impl Freeze for MemoryInfo
impl RefUnwindSafe for MemoryInfo
impl Send for MemoryInfo
impl Sync for MemoryInfo
impl Unpin for MemoryInfo
impl UnsafeUnpin for MemoryInfo
impl UnwindSafe for MemoryInfo
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