pub struct DualMapping {
pub rx: *const u8,
pub rw: *mut u8,
}
Expand description
Dual memory mapping used to map an anonymous memory into two memory regions where one region is read-only, but executable, and the second region is read+write, but not executable. See alloc_dual_mapping for more details.
Fields§
§rx: *const u8
Pointer to data with ‘Read+Execute’ access (this memory is not writable).
rw: *mut u8
Pointer to data with ‘Read+Write’ access (this memory is not executable).
Auto Trait Implementations§
impl Freeze for DualMapping
impl RefUnwindSafe for DualMapping
impl !Send for DualMapping
impl !Sync for DualMapping
impl Unpin for DualMapping
impl UnwindSafe for DualMapping
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