Struct process_builder::elf_parse::Elf64ProgramHeader
source · #[repr(C)]pub struct Elf64ProgramHeader {
pub segment_type: u32,
pub flags: u32,
pub offset: usize,
pub vaddr: usize,
pub paddr: usize,
pub filesz: u64,
pub memsz: u64,
pub align: u64,
}
Fields§
§segment_type: u32
§flags: u32
§offset: usize
§vaddr: usize
§paddr: usize
§filesz: u64
§memsz: u64
§align: u64
Implementations§
source§impl Elf64ProgramHeader
impl Elf64ProgramHeader
pub fn segment_type(&self) -> Result<SegmentType, u32>
pub fn flags(&self) -> SegmentFlags
Trait Implementations§
source§impl Clone for Elf64ProgramHeader
impl Clone for Elf64ProgramHeader
source§fn clone(&self) -> Elf64ProgramHeader
fn clone(&self) -> Elf64ProgramHeader
Returns a copy 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 moresource§impl Debug for Elf64ProgramHeader
impl Debug for Elf64ProgramHeader
source§impl Default for Elf64ProgramHeader
impl Default for Elf64ProgramHeader
source§fn default() -> Elf64ProgramHeader
fn default() -> Elf64ProgramHeader
Returns the “default value” for a type. Read more
source§impl FromBytes for Elf64ProgramHeader
impl FromBytes for Elf64ProgramHeader
§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized + NoCell,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized + NoCell,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + IntoBytes + NoCell,
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + IntoBytes + NoCell,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read more§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
source§impl FromZeros for Elf64ProgramHeader
impl FromZeros for Elf64ProgramHeader
source§impl IntoBytes for Elf64ProgramHeaderwhere
u32: IntoBytes,
usize: IntoBytes,
u64: IntoBytes,
HasPadding<Elf64ProgramHeader, { _ }>: ShouldBe<false>,
impl IntoBytes for Elf64ProgramHeaderwhere
u32: IntoBytes,
usize: IntoBytes,
u64: IntoBytes,
HasPadding<Elf64ProgramHeader, { _ }>: ShouldBe<false>,
source§impl PartialEq for Elf64ProgramHeader
impl PartialEq for Elf64ProgramHeader
source§fn eq(&self, other: &Elf64ProgramHeader) -> bool
fn eq(&self, other: &Elf64ProgramHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Elf64ProgramHeader
impl Eq for Elf64ProgramHeader
impl StructuralPartialEq for Elf64ProgramHeader
Auto Trait Implementations§
impl Freeze for Elf64ProgramHeader
impl RefUnwindSafe for Elf64ProgramHeader
impl Send for Elf64ProgramHeader
impl Sync for Elf64ProgramHeader
impl Unpin for Elf64ProgramHeader
impl UnwindSafe for Elf64ProgramHeader
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