pub struct MemorySnapshot {
pub used: usize,
pub limit: usize,
}Expand description
Point-in-time view of a budget (read-only observability).
Concurrent charges may change used immediately after this returns —
treat it as metrics, not a transactional lock.
Fields§
§used: usize§limit: usizeTrait Implementations§
Source§impl Clone for MemorySnapshot
impl Clone for MemorySnapshot
impl Copy for MemorySnapshot
Source§impl Debug for MemorySnapshot
impl Debug for MemorySnapshot
impl Eq for MemorySnapshot
Source§impl PartialEq for MemorySnapshot
impl PartialEq for MemorySnapshot
impl StructuralPartialEq for MemorySnapshot
Auto Trait Implementations§
impl Forget for MemorySnapshot
impl Freeze for MemorySnapshot
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.