pub struct MemInfo {
pub total_kb: u64,
pub free_kb: u64,
pub available_kb: u64,
}Expand description
The three /proc/meminfo fields the two utilization measures need,
in kB as the kernel reports them.
Fields§
§total_kb: u64§free_kb: u64§available_kb: u64Trait Implementations§
impl Copy for MemInfo
impl Eq for MemInfo
impl StructuralPartialEq for MemInfo
Auto Trait Implementations§
impl Forget for MemInfo
impl Freeze for MemInfo
impl Move for MemInfo
impl RefUnwindSafe for MemInfo
impl Send for MemInfo
impl Sync for MemInfo
impl Unpin for MemInfo
impl UnsafeUnpin for MemInfo
impl UnwindSafe for MemInfo
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