pub struct BinaryAllocationData {Show 13 fields
pub id: u64,
pub size: usize,
pub type_name: String,
pub scope_name: String,
pub timestamp_alloc: u64,
pub is_active: bool,
pub ptr: usize,
pub thread_id: String,
pub var_name: Option<String>,
pub borrow_count: usize,
pub is_leaked: bool,
pub lifetime_ms: Option<u64>,
pub optional_fields: HashMap<String, BinaryFieldValue>,
}
Expand description
Binary allocation data structure for direct HTML processing
Fields§
§id: u64
§size: usize
§type_name: String
§scope_name: String
§timestamp_alloc: u64
§is_active: bool
§ptr: usize
§thread_id: String
§var_name: Option<String>
§borrow_count: usize
§is_leaked: bool
§lifetime_ms: Option<u64>
§optional_fields: HashMap<String, BinaryFieldValue>
Dynamic fields based on requested fields
Implementations§
Source§impl BinaryAllocationData
impl BinaryAllocationData
Sourcepub fn from_allocation(
allocation: &AllocationInfo,
requested_fields: &HashSet<AllocationField>,
) -> Result<Self, BinaryExportError>
pub fn from_allocation( allocation: &AllocationInfo, requested_fields: &HashSet<AllocationField>, ) -> Result<Self, BinaryExportError>
Create binary allocation data from AllocationInfo
Trait Implementations§
Source§impl Clone for BinaryAllocationData
impl Clone for BinaryAllocationData
Source§fn clone(&self) -> BinaryAllocationData
fn clone(&self) -> BinaryAllocationData
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 BinaryAllocationData
impl RefUnwindSafe for BinaryAllocationData
impl Send for BinaryAllocationData
impl Sync for BinaryAllocationData
impl Unpin for BinaryAllocationData
impl UnwindSafe for BinaryAllocationData
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