pub struct ThreadMemoryLayout {
pub stack_base: usize,
pub stack_size: usize,
pub stack_guard_gap: usize,
pub heap_base: usize,
pub heap_size: usize,
pub heap_guard_gap: usize,
pub randomization_entropy: u64,
}
Expand description
Thread-specific memory layout with randomization.
Fields§
§stack_base: usize
§stack_size: usize
§stack_guard_gap: usize
§heap_base: usize
§heap_size: usize
§heap_guard_gap: usize
§randomization_entropy: u64
Implementations§
Source§impl ThreadMemoryLayout
impl ThreadMemoryLayout
Sourcepub fn create_randomized_stack(&self) -> Result<RandomizedStack, ThreadError>
pub fn create_randomized_stack(&self) -> Result<RandomizedStack, ThreadError>
Create stack with randomized address.
Trait Implementations§
Source§impl Clone for ThreadMemoryLayout
impl Clone for ThreadMemoryLayout
Source§fn clone(&self) -> ThreadMemoryLayout
fn clone(&self) -> ThreadMemoryLayout
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 ThreadMemoryLayout
impl RefUnwindSafe for ThreadMemoryLayout
impl Send for ThreadMemoryLayout
impl Sync for ThreadMemoryLayout
impl Unpin for ThreadMemoryLayout
impl UnwindSafe for ThreadMemoryLayout
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