Struct elf_parser::ELFSegment
source · pub struct ELFSegment {
pub vaddr: VirtAddr,
pub size: usize,
pub flags: MappingFlags,
pub data: Option<Vec<u8>>,
}
Expand description
The segment of the elf file, which is used to map the elf file to the memory space
Fields§
§vaddr: VirtAddr
The start virtual address of the segment
size: usize
The size of the segment
flags: MappingFlags
The flags of the segment which is used to set the page table entry
data: Option<Vec<u8>>
The data of the segment
Auto Trait Implementations§
impl RefUnwindSafe for ELFSegment
impl Send for ELFSegment
impl Sync for ELFSegment
impl Unpin for ELFSegment
impl UnwindSafe for ELFSegment
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