#[repr(C)]pub struct ExecutableAddressResponse { /* private fields */ }Expand description
A response to a executable address request.
This can be used to convert a virtual address within the executable to a physical address like so:
let phys_addr = virt_addr - virtual_base + physical_base;Implementations§
Source§impl ExecutableAddressResponse
impl ExecutableAddressResponse
Sourcepub fn physical_base(&self) -> u64
pub fn physical_base(&self) -> u64
Returns the base address of the executable in physical memory.
Sourcepub fn virtual_base(&self) -> u64
pub fn virtual_base(&self) -> u64
Returns the base address of the executable in virtual memory.
Auto Trait Implementations§
impl Freeze for ExecutableAddressResponse
impl RefUnwindSafe for ExecutableAddressResponse
impl Send for ExecutableAddressResponse
impl Sync for ExecutableAddressResponse
impl Unpin for ExecutableAddressResponse
impl UnwindSafe for ExecutableAddressResponse
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