Enum object::read::macho::LoadCommandVariant
source · #[non_exhaustive]pub enum LoadCommandVariant<'data, E: Endian> {
Show 33 variants
Segment32(&'data SegmentCommand32<E>, &'data [u8]),
Symtab(&'data SymtabCommand<E>),
Thread(&'data ThreadCommand<E>, &'data [u8]),
Dysymtab(&'data DysymtabCommand<E>),
Dylib(&'data DylibCommand<E>),
IdDylib(&'data DylibCommand<E>),
LoadDylinker(&'data DylinkerCommand<E>),
IdDylinker(&'data DylinkerCommand<E>),
PreboundDylib(&'data PreboundDylibCommand<E>),
Routines32(&'data RoutinesCommand32<E>),
SubFramework(&'data SubFrameworkCommand<E>),
SubUmbrella(&'data SubUmbrellaCommand<E>),
SubClient(&'data SubClientCommand<E>),
SubLibrary(&'data SubLibraryCommand<E>),
TwolevelHints(&'data TwolevelHintsCommand<E>),
PrebindCksum(&'data PrebindCksumCommand<E>),
Segment64(&'data SegmentCommand64<E>, &'data [u8]),
Routines64(&'data RoutinesCommand64<E>),
Uuid(&'data UuidCommand<E>),
Rpath(&'data RpathCommand<E>),
LinkeditData(&'data LinkeditDataCommand<E>),
EncryptionInfo32(&'data EncryptionInfoCommand32<E>),
DyldInfo(&'data DyldInfoCommand<E>),
VersionMin(&'data VersionMinCommand<E>),
DyldEnvironment(&'data DylinkerCommand<E>),
EntryPoint(&'data EntryPointCommand<E>),
SourceVersion(&'data SourceVersionCommand<E>),
EncryptionInfo64(&'data EncryptionInfoCommand64<E>),
LinkerOption(&'data LinkerOptionCommand<E>),
Note(&'data NoteCommand<E>),
BuildVersion(&'data BuildVersionCommand<E>),
FilesetEntry(&'data FilesetEntryCommand<E>),
Other,
}
Expand description
A macho::LoadCommand
that has been interpreted according to its cmd
field.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Segment32(&'data SegmentCommand32<E>, &'data [u8])
LC_SEGMENT
Symtab(&'data SymtabCommand<E>)
LC_SYMTAB
Thread(&'data ThreadCommand<E>, &'data [u8])
LC_THREAD
or LC_UNIXTHREAD
Dysymtab(&'data DysymtabCommand<E>)
LC_DYSYMTAB
Dylib(&'data DylibCommand<E>)
LC_LOAD_DYLIB
, LC_LOAD_WEAK_DYLIB
, LC_REEXPORT_DYLIB
,
LC_LAZY_LOAD_DYLIB
, or LC_LOAD_UPWARD_DYLIB
IdDylib(&'data DylibCommand<E>)
LC_ID_DYLIB
LoadDylinker(&'data DylinkerCommand<E>)
LC_LOAD_DYLINKER
IdDylinker(&'data DylinkerCommand<E>)
LC_ID_DYLINKER
PreboundDylib(&'data PreboundDylibCommand<E>)
LC_PREBOUND_DYLIB
Routines32(&'data RoutinesCommand32<E>)
LC_ROUTINES
SubFramework(&'data SubFrameworkCommand<E>)
LC_SUB_FRAMEWORK
SubUmbrella(&'data SubUmbrellaCommand<E>)
LC_SUB_UMBRELLA
SubClient(&'data SubClientCommand<E>)
LC_SUB_CLIENT
SubLibrary(&'data SubLibraryCommand<E>)
LC_SUB_LIBRARY
TwolevelHints(&'data TwolevelHintsCommand<E>)
LC_TWOLEVEL_HINTS
PrebindCksum(&'data PrebindCksumCommand<E>)
LC_PREBIND_CKSUM
Segment64(&'data SegmentCommand64<E>, &'data [u8])
LC_SEGMENT_64
Routines64(&'data RoutinesCommand64<E>)
LC_ROUTINES_64
Uuid(&'data UuidCommand<E>)
LC_UUID
Rpath(&'data RpathCommand<E>)
LC_RPATH
LinkeditData(&'data LinkeditDataCommand<E>)
LC_CODE_SIGNATURE
, LC_SEGMENT_SPLIT_INFO
, LC_FUNCTION_STARTS
,
LC_DATA_IN_CODE
, LC_DYLIB_CODE_SIGN_DRS
, LC_LINKER_OPTIMIZATION_HINT
,
LC_DYLD_EXPORTS_TRIE
, or LC_DYLD_CHAINED_FIXUPS
.
EncryptionInfo32(&'data EncryptionInfoCommand32<E>)
LC_ENCRYPTION_INFO
DyldInfo(&'data DyldInfoCommand<E>)
LC_DYLD_INFO
or LC_DYLD_INFO_ONLY
VersionMin(&'data VersionMinCommand<E>)
LC_VERSION_MIN_MACOSX
, LC_VERSION_MIN_IPHONEOS
, LC_VERSION_MIN_WATCHOS
,
or LC_VERSION_MIN_TVOS
DyldEnvironment(&'data DylinkerCommand<E>)
LC_DYLD_ENVIRONMENT
EntryPoint(&'data EntryPointCommand<E>)
LC_MAIN
SourceVersion(&'data SourceVersionCommand<E>)
LC_SOURCE_VERSION
EncryptionInfo64(&'data EncryptionInfoCommand64<E>)
LC_ENCRYPTION_INFO_64
LinkerOption(&'data LinkerOptionCommand<E>)
LC_LINKER_OPTION
Note(&'data NoteCommand<E>)
LC_NOTE
BuildVersion(&'data BuildVersionCommand<E>)
LC_BUILD_VERSION
FilesetEntry(&'data FilesetEntryCommand<E>)
LC_FILESET_ENTRY
Other
An unrecognized or obsolete load command.
Trait Implementations§
source§impl<'data, E: Clone + Endian> Clone for LoadCommandVariant<'data, E>
impl<'data, E: Clone + Endian> Clone for LoadCommandVariant<'data, E>
source§fn clone(&self) -> LoadCommandVariant<'data, E>
fn clone(&self) -> LoadCommandVariant<'data, E>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreimpl<'data, E: Copy + Endian> Copy for LoadCommandVariant<'data, E>
Auto Trait Implementations§
impl<'data, E> Freeze for LoadCommandVariant<'data, E>
impl<'data, E> RefUnwindSafe for LoadCommandVariant<'data, E>where
E: RefUnwindSafe,
impl<'data, E> Send for LoadCommandVariant<'data, E>where
E: Sync,
impl<'data, E> Sync for LoadCommandVariant<'data, E>where
E: Sync,
impl<'data, E> Unpin for LoadCommandVariant<'data, E>
impl<'data, E> UnwindSafe for LoadCommandVariant<'data, E>where
E: RefUnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)