pub struct AllocationInfo {Show 17 fields
pub ptr: String,
pub size: usize,
pub var_name: Option<String>,
pub type_name: Option<String>,
pub scope_name: Option<String>,
pub timestamp_alloc: u64,
pub timestamp_dealloc: Option<u64>,
pub thread_id: Option<String>,
pub borrow_count: Option<u32>,
pub stack_trace: Option<Vec<String>>,
pub is_leaked: bool,
pub lifetime_ms: Option<u64>,
pub borrow_info: Option<BorrowInfo>,
pub clone_info: Option<CloneInfo>,
pub ownership_history_available: Option<bool>,
pub ffi_tracked: Option<bool>,
pub safety_violations: Option<Vec<String>>,
}
Expand description
Allocation information
Fields§
§ptr: String
Memory pointer as hex string
size: usize
Allocation size in bytes
var_name: Option<String>
Variable name if available
type_name: Option<String>
Type name if available
scope_name: Option<String>
Scope name
timestamp_alloc: u64
Allocation timestamp
timestamp_dealloc: Option<u64>
Deallocation timestamp
thread_id: Option<String>
Thread ID
borrow_count: Option<u32>
Borrow count
stack_trace: Option<Vec<String>>
Stack trace
is_leaked: bool
Whether allocation is leaked
lifetime_ms: Option<u64>
Lifetime in milliseconds
borrow_info: Option<BorrowInfo>
Borrow information for unsafe/FFI tracking
clone_info: Option<CloneInfo>
Clone information
ownership_history_available: Option<bool>
Whether ownership history is available
ffi_tracked: Option<bool>
Whether FFI tracking is enabled
safety_violations: Option<Vec<String>>
Safety violations
Trait Implementations§
Source§impl Clone for AllocationInfo
impl Clone for AllocationInfo
Source§fn clone(&self) -> AllocationInfo
fn clone(&self) -> AllocationInfo
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 Debug for AllocationInfo
impl Debug for AllocationInfo
Source§impl<'de> Deserialize<'de> for AllocationInfo
impl<'de> Deserialize<'de> for AllocationInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AllocationInfo
impl RefUnwindSafe for AllocationInfo
impl Send for AllocationInfo
impl Sync for AllocationInfo
impl Unpin for AllocationInfo
impl UnwindSafe for AllocationInfo
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more