pub struct MemStats {
pub alloc: u64,
pub total_alloc: u64,
pub heap_alloc: u64,
}Expand description
Memory statistics
Fields§
§alloc: u64Current allocated memory
total_alloc: u64Total allocated memory over lifetime
heap_alloc: u64Heap allocated memory
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MemStats
impl<'de> Deserialize<'de> for MemStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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