pub struct MemoryStatistics {
pub total: DetailedStatistics,
pub memory_types: [DetailedStatistics; 32],
pub heaps: [DetailedStatistics; 16],
}Expand description
Explicit diagnostic snapshot, indexed by native memory type and heap.
Fields§
§total: DetailedStatistics§memory_types: [DetailedStatistics; 32]§heaps: [DetailedStatistics; 16]Implementations§
Source§impl MemoryStatistics
impl MemoryStatistics
Sourcepub fn set_total(self, value: DetailedStatistics) -> Self
pub fn set_total(self, value: DetailedStatistics) -> Self
Set total and return the updated record.
Sourcepub fn set_memory_types(self, value: [DetailedStatistics; 32]) -> Self
pub fn set_memory_types(self, value: [DetailedStatistics; 32]) -> Self
Set memory_types and return the updated record.
Sourcepub fn set_heaps(self, value: [DetailedStatistics; 16]) -> Self
pub fn set_heaps(self, value: [DetailedStatistics; 16]) -> Self
Set heaps and return the updated record.
Trait Implementations§
Source§impl Clone for MemoryStatistics
impl Clone for MemoryStatistics
Source§impl Debug for MemoryStatistics
impl Debug for MemoryStatistics
Source§impl Default for MemoryStatistics
impl Default for MemoryStatistics
impl Eq for MemoryStatistics
Source§impl PartialEq for MemoryStatistics
impl PartialEq for MemoryStatistics
impl StructuralPartialEq for MemoryStatistics
Auto Trait Implementations§
impl Forget for MemoryStatistics
impl Freeze for MemoryStatistics
impl Move for MemoryStatistics
impl RefUnwindSafe for MemoryStatistics
impl Send for MemoryStatistics
impl Sync for MemoryStatistics
impl Unpin for MemoryStatistics
impl UnsafeUnpin for MemoryStatistics
impl UnwindSafe for MemoryStatistics
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