Struct goblin::mach::load_command::EntryPointCommand
source · [−]#[repr(C)]pub struct EntryPointCommand {
pub cmd: u32,
pub cmdsize: u32,
pub entryoff: u64,
pub stacksize: u64,
}
Expand description
The entry_point_command is a replacement for thread_command. It is used for main executables to specify the location (file offset) of main(). If -stack_size was used at link time, the stacksize field will contain the stack size need for the main thread.
Fields
cmd: u32
cmdsize: u32
entryoff: u64
uint64_t file __TEXT offset of main
stacksize: u64
uint64_t if not zero, initial stack size
Trait Implementations
sourceimpl Clone for EntryPointCommand
impl Clone for EntryPointCommand
sourcefn clone(&self) -> EntryPointCommand
fn clone(&self) -> EntryPointCommand
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EntryPointCommand
impl Debug for EntryPointCommand
sourceimpl<'a> TryFromCtx<'a, Endian, [u8]> for EntryPointCommand where
EntryPointCommand: 'a,
impl<'a> TryFromCtx<'a, Endian, [u8]> for EntryPointCommand where
EntryPointCommand: 'a,
sourceimpl<'a> TryIntoCtx<Endian, [u8]> for &'a EntryPointCommand
impl<'a> TryIntoCtx<Endian, [u8]> for &'a EntryPointCommand
sourceimpl TryIntoCtx<Endian, [u8]> for EntryPointCommand
impl TryIntoCtx<Endian, [u8]> for EntryPointCommand
impl Copy for EntryPointCommand
Auto Trait Implementations
impl RefUnwindSafe for EntryPointCommand
impl Send for EntryPointCommand
impl Sync for EntryPointCommand
impl Unpin for EntryPointCommand
impl UnwindSafe for EntryPointCommand
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more