Enum object::read::macho::LoadCommandVariant[][src]

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 LoadCommand that has been interpreted according to its cmd field.

Variants

Segment32(&'data SegmentCommand32<E>, &'data [u8])

Tuple Fields

0: &'data SegmentCommand32<E>

LC_SEGMENT

Symtab(&'data SymtabCommand<E>)

Tuple Fields

0: &'data SymtabCommand<E>

LC_SYMTAB

Thread(&'data ThreadCommand<E>, &'data [u8])

Tuple Fields

0: &'data ThreadCommand<E>

LC_THREAD or LC_UNIXTHREAD

Dysymtab(&'data DysymtabCommand<E>)

Tuple Fields

0: &'data DysymtabCommand<E>

LC_DYSYMTAB

Dylib(&'data DylibCommand<E>)

Tuple Fields

0: &'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>)

Tuple Fields

0: &'data DylibCommand<E>

LC_ID_DYLIB

LoadDylinker(&'data DylinkerCommand<E>)

Tuple Fields

0: &'data DylinkerCommand<E>

LC_LOAD_DYLINKER

IdDylinker(&'data DylinkerCommand<E>)

Tuple Fields

0: &'data DylinkerCommand<E>

LC_ID_DYLINKER

PreboundDylib(&'data PreboundDylibCommand<E>)

Tuple Fields

0: &'data PreboundDylibCommand<E>

LC_PREBOUND_DYLIB

Routines32(&'data RoutinesCommand32<E>)

Tuple Fields

0: &'data RoutinesCommand32<E>

LC_ROUTINES

SubFramework(&'data SubFrameworkCommand<E>)

Tuple Fields

0: &'data SubFrameworkCommand<E>

LC_SUB_FRAMEWORK

SubUmbrella(&'data SubUmbrellaCommand<E>)

Tuple Fields

0: &'data SubUmbrellaCommand<E>

LC_SUB_UMBRELLA

SubClient(&'data SubClientCommand<E>)

Tuple Fields

0: &'data SubClientCommand<E>

LC_SUB_CLIENT

SubLibrary(&'data SubLibraryCommand<E>)

Tuple Fields

0: &'data SubLibraryCommand<E>

LC_SUB_LIBRARY

TwolevelHints(&'data TwolevelHintsCommand<E>)

Tuple Fields

0: &'data TwolevelHintsCommand<E>

LC_TWOLEVEL_HINTS

PrebindCksum(&'data PrebindCksumCommand<E>)

Tuple Fields

0: &'data PrebindCksumCommand<E>

LC_PREBIND_CKSUM

Segment64(&'data SegmentCommand64<E>, &'data [u8])

Tuple Fields

0: &'data SegmentCommand64<E>

LC_SEGMENT_64

Routines64(&'data RoutinesCommand64<E>)

Tuple Fields

0: &'data RoutinesCommand64<E>

LC_ROUTINES_64

Uuid(&'data UuidCommand<E>)

Tuple Fields

0: &'data UuidCommand<E>

LC_UUID

Rpath(&'data RpathCommand<E>)

Tuple Fields

0: &'data RpathCommand<E>

LC_RPATH

LinkeditData(&'data LinkeditDataCommand<E>)

Tuple Fields

0: &'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>)

Tuple Fields

LC_ENCRYPTION_INFO

DyldInfo(&'data DyldInfoCommand<E>)

Tuple Fields

0: &'data DyldInfoCommand<E>

LC_DYLD_INFO or LC_DYLD_INFO_ONLY

VersionMin(&'data VersionMinCommand<E>)

Tuple Fields

0: &'data VersionMinCommand<E>

LC_VERSION_MIN_MACOSX, LC_VERSION_MIN_IPHONEOS, LC_VERSION_MIN_WATCHOS, or LC_VERSION_MIN_TVOS

DyldEnvironment(&'data DylinkerCommand<E>)

Tuple Fields

0: &'data DylinkerCommand<E>

LC_DYLD_ENVIRONMENT

EntryPoint(&'data EntryPointCommand<E>)

Tuple Fields

0: &'data EntryPointCommand<E>

LC_MAIN

SourceVersion(&'data SourceVersionCommand<E>)

Tuple Fields

0: &'data SourceVersionCommand<E>

LC_SOURCE_VERSION

EncryptionInfo64(&'data EncryptionInfoCommand64<E>)

Tuple Fields

LC_ENCRYPTION_INFO_64

LinkerOption(&'data LinkerOptionCommand<E>)

Tuple Fields

0: &'data LinkerOptionCommand<E>

LC_LINKER_OPTION

Note(&'data NoteCommand<E>)

Tuple Fields

0: &'data NoteCommand<E>

LC_NOTE

BuildVersion(&'data BuildVersionCommand<E>)

Tuple Fields

0: &'data BuildVersionCommand<E>

LC_BUILD_VERSION

FilesetEntry(&'data FilesetEntryCommand<E>)

Tuple Fields

0: &'data FilesetEntryCommand<E>

LC_FILESET_ENTRY

Other

An unrecognized or obsolete load command.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.