Struct minidump_writer::mach::MachHeader
source · #[repr(C)]pub struct MachHeader {
pub magic: u32,
pub cpu_type: i32,
pub cpu_sub_type: i32,
pub file_type: u32,
pub num_commands: u32,
pub size_commands: u32,
pub flags: u32,
/* private fields */
}
Expand description
The header at the beginning of every (valid) Mach image
<usr/include/mach-o/loader.h>
Fields§
§magic: u32
Mach magic number identifier, this is used to validate the header is valid
cpu_type: i32
cpu_type_t
cpu specifier
cpu_sub_type: i32
cpu_subtype_t
machine specifier
file_type: u32
Type of file, eg. MH_EXECUTE
for the main executable
num_commands: u32
Number of load commands for the image
size_commands: u32
Size in bytes of all of the load commands
flags: u32
Trait Implementations§
source§impl Clone for MachHeader
impl Clone for MachHeader
source§fn clone(&self) -> MachHeader
fn clone(&self) -> MachHeader
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 moreAuto Trait Implementations§
impl Freeze for MachHeader
impl RefUnwindSafe for MachHeader
impl Send for MachHeader
impl Sync for MachHeader
impl Unpin for MachHeader
impl UnwindSafe for MachHeader
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)