pub struct MemoryInfo {
pub available_bytes: u64,
pub total_bytes: Option<u64>,
pub used_bytes: Option<u64>,
}Expand description
Memory information for the current system
Fields§
§available_bytes: u64Available memory in bytes
total_bytes: Option<u64>Total system memory in bytes (if available)
used_bytes: Option<u64>Used memory in bytes (if available)
Trait Implementations§
Source§impl Clone for MemoryInfo
impl Clone 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