pub struct DebugMemorySettings {
pub margin: u64,
pub initialize_allocations: bool,
pub poison_frees: bool,
}Expand description
Opt-in host-visible debug instrumentation, configured before native acquisition. Guard margins follow VMA’s coherent pooled-memory policy. Zero disables guards.
Fields§
§margin: u64Trailing guard bytes, a multiple of four. Separate native allocations have no guard tail.
initialize_allocations: boolInitialize admitted host-visible allocation bytes with VMA’s created pattern (0xDC).
poison_frees: boolOverwrite admitted host-visible bytes with VMA’s destroyed pattern (0xEF) on release.
Implementations§
Source§impl DebugMemorySettings
impl DebugMemorySettings
Sourcepub fn set_margin(self, value: u64) -> Self
pub fn set_margin(self, value: u64) -> Self
Set margin and return the updated record.
Sourcepub fn set_initialize_allocations(self, value: bool) -> Self
pub fn set_initialize_allocations(self, value: bool) -> Self
Set initialize_allocations and return the updated record.
Sourcepub fn set_poison_frees(self, value: bool) -> Self
pub fn set_poison_frees(self, value: bool) -> Self
Set poison_frees and return the updated record.
Trait Implementations§
Source§impl Clone for DebugMemorySettings
impl Clone for DebugMemorySettings
impl Copy for DebugMemorySettings
Source§impl Debug for DebugMemorySettings
impl Debug for DebugMemorySettings
Source§impl Default for DebugMemorySettings
impl Default for DebugMemorySettings
impl Eq for DebugMemorySettings
Source§impl PartialEq for DebugMemorySettings
impl PartialEq for DebugMemorySettings
impl StructuralPartialEq for DebugMemorySettings
Auto Trait Implementations§
impl Forget for DebugMemorySettings
impl Freeze for DebugMemorySettings
impl Move for DebugMemorySettings
impl RefUnwindSafe for DebugMemorySettings
impl Send for DebugMemorySettings
impl Sync for DebugMemorySettings
impl Unpin for DebugMemorySettings
impl UnsafeUnpin for DebugMemorySettings
impl UnwindSafe for DebugMemorySettings
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