pub struct MemStats {
pub total: usize,
pub free: usize,
pub used: usize,
pub peak_used: usize,
}Expand description
System heap statistics.
Fields§
§total: usizeTotal heap size in bytes.
free: usizeCurrent free heap in bytes.
used: usizeCurrent used heap in bytes.
peak_used: usizeHigh-water-mark usage in bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MemStats
impl RefUnwindSafe for MemStats
impl Send for MemStats
impl Sync for MemStats
impl Unpin for MemStats
impl UnwindSafe for MemStats
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