pub struct LeakCounts {
pub leaked: c_ulong,
pub dubious: c_ulong,
pub reachable: c_ulong,
pub suppressed: c_ulong,
}
Available on crate feature
client_requests_defs
only.Expand description
The LeakCounts
as returned by count_leaks
and count_leak_blocks
These client request fills in the four fields of LeakCounts
with the number of bytes of
memory found by the previous leak check to be leaked (i.e. the sum of direct leaks and indirect
leaks), dubious, reachable and suppressed.
Fields§
§leaked: c_ulong
The number of bytes of memory of direct and indirect leaks
dubious: c_ulong
The number of bytes of memory of dubious leaks
reachable: c_ulong
The number of bytes of memory of reachable leaks
suppressed: c_ulong
The number of bytes of memory of suppressed leaks
Trait Implementations§
source§impl Clone for LeakCounts
impl Clone for LeakCounts
source§fn clone(&self) -> LeakCounts
fn clone(&self) -> LeakCounts
Returns a copy 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 Debug for LeakCounts
impl Debug for LeakCounts
source§impl Default for LeakCounts
impl Default for LeakCounts
source§fn default() -> LeakCounts
fn default() -> LeakCounts
Returns the “default value” for a type. Read more
source§impl Hash for LeakCounts
impl Hash for LeakCounts
source§impl PartialEq for LeakCounts
impl PartialEq for LeakCounts
impl Eq for LeakCounts
impl StructuralPartialEq for LeakCounts
Auto Trait Implementations§
impl Freeze for LeakCounts
impl RefUnwindSafe for LeakCounts
impl Send for LeakCounts
impl Sync for LeakCounts
impl Unpin for LeakCounts
impl UnwindSafe for LeakCounts
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)