pub struct LeakPattern {
pub leak_rate_per_sec: usize,
pub leak_probability: f64,
pub region: String,
pub sporadic_fix: bool,
}Expand description
Memory leak simulation pattern.
Fields§
§leak_rate_per_sec: usizeBytes leaked per second.
leak_probability: f64Probability of leak each tick.
region: StringRegion name.
sporadic_fix: boolWhether to occasionally “fix” the leak (for testing detection).
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 moreSource§impl CustomMemoryPattern for LeakPattern
impl CustomMemoryPattern for LeakPattern
Source§impl Debug for LeakPattern
impl Debug for LeakPattern
Auto Trait Implementations§
impl Freeze for LeakPattern
impl RefUnwindSafe for LeakPattern
impl Send for LeakPattern
impl Sync for LeakPattern
impl Unpin for LeakPattern
impl UnsafeUnpin 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