pub struct UnsafeTrackingConfig {
pub track_unsafe_allocations: bool,
pub track_ffi_allocations: bool,
pub detect_double_free: bool,
pub detect_memory_leaks: bool,
pub enable_memory_passport: bool,
}Expand description
Unsafe/FFI tracking configuration
Fields§
§track_unsafe_allocations: boolEnable tracking of unsafe Rust allocations
track_ffi_allocations: boolEnable tracking of FFI allocations
detect_double_free: boolEnable double-free detection
detect_memory_leaks: boolEnable memory leak detection
enable_memory_passport: boolEnable cross-boundary tracking with memory passport
Implementations§
Source§impl UnsafeTrackingConfig
impl UnsafeTrackingConfig
Sourcepub fn comprehensive() -> Self
pub fn comprehensive() -> Self
Create configuration for comprehensive tracking
Trait Implementations§
Source§impl Clone for UnsafeTrackingConfig
impl Clone for UnsafeTrackingConfig
Source§fn clone(&self) -> UnsafeTrackingConfig
fn clone(&self) -> UnsafeTrackingConfig
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 UnsafeTrackingConfig
impl Debug for UnsafeTrackingConfig
Auto Trait Implementations§
impl Freeze for UnsafeTrackingConfig
impl RefUnwindSafe for UnsafeTrackingConfig
impl Send for UnsafeTrackingConfig
impl Sync for UnsafeTrackingConfig
impl Unpin for UnsafeTrackingConfig
impl UnsafeUnpin for UnsafeTrackingConfig
impl UnwindSafe for UnsafeTrackingConfig
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