#[non_exhaustive]pub struct BytesTrackerSnapshot {
pub live_bytes: usize,
pub live_allocations: usize,
}Available on crate feature
tracker only.Expand description
Point-in-time values of a BytesTracker.
The counters are read one by one, the snapshot is exact only when no allocation is attributed or released concurrently.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.live_bytes: usizeMemory held by attributed allocations, in bytes.
live_allocations: usizeNumber of attributed allocations.
Trait Implementations§
Source§impl Clone for BytesTrackerSnapshot
impl Clone for BytesTrackerSnapshot
impl Copy for BytesTrackerSnapshot
Source§impl Debug for BytesTrackerSnapshot
impl Debug for BytesTrackerSnapshot
Source§impl Default for BytesTrackerSnapshot
impl Default for BytesTrackerSnapshot
impl Eq for BytesTrackerSnapshot
Source§impl PartialEq for BytesTrackerSnapshot
impl PartialEq for BytesTrackerSnapshot
impl StructuralPartialEq for BytesTrackerSnapshot
Auto Trait Implementations§
impl Freeze for BytesTrackerSnapshot
impl RefUnwindSafe for BytesTrackerSnapshot
impl Send for BytesTrackerSnapshot
impl Sync for BytesTrackerSnapshot
impl Unpin for BytesTrackerSnapshot
impl UnsafeUnpin for BytesTrackerSnapshot
impl UnwindSafe for BytesTrackerSnapshot
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