pub struct MemorySnapshot {
pub current_bytes: u64,
pub peak_bytes: u64,
pub limit_bytes: u64,
}Expand description
Point-in-time memory accounting values.
Fields§
§current_bytes: u64Bytes currently reserved.
peak_bytes: u64Maximum simultaneously reserved bytes.
limit_bytes: u64Configured hard limit.
Trait Implementations§
Source§impl Clone for MemorySnapshot
impl Clone for MemorySnapshot
Source§fn clone(&self) -> MemorySnapshot
fn clone(&self) -> MemorySnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemorySnapshot
impl Debug for MemorySnapshot
Source§impl PartialEq for MemorySnapshot
impl PartialEq for MemorySnapshot
Source§fn eq(&self, other: &MemorySnapshot) -> bool
fn eq(&self, other: &MemorySnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MemorySnapshot
impl Eq for MemorySnapshot
impl StructuralPartialEq for MemorySnapshot
Auto Trait Implementations§
impl Freeze for MemorySnapshot
impl RefUnwindSafe for MemorySnapshot
impl Send for MemorySnapshot
impl Sync for MemorySnapshot
impl Unpin for MemorySnapshot
impl UnsafeUnpin for MemorySnapshot
impl UnwindSafe for MemorySnapshot
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