pub enum LeakPattern {
RepeatedSize {
size: usize,
count: usize,
},
VeryOld {
age: Duration,
size: usize,
},
GrowingCount {
net_allocations: i64,
},
LargeOld {
size: usize,
age: Duration,
},
}Expand description
Pattern indicating a potential leak.
Variants§
RepeatedSize
Many allocations of the same size.
VeryOld
Very old allocation that was never freed.
GrowingCount
Growing count of allocations over time.
LargeOld
Large single allocation held too long.
Implementations§
Source§impl LeakPattern
impl LeakPattern
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get a description of the pattern.
Trait Implementations§
Source§impl Clone for LeakPattern
impl Clone for LeakPattern
Source§fn clone(&self) -> LeakPattern
fn clone(&self) -> LeakPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LeakPattern
impl RefUnwindSafe for LeakPattern
impl Send for LeakPattern
impl Sync for LeakPattern
impl Unpin for LeakPattern
impl UnwindSafe for LeakPattern
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