Enum goblin::mach::load_command::CommandVariant[][src]

pub enum CommandVariant {
    Segment32(SegmentCommand32),
    Segment64(SegmentCommand64),
    Uuid(UuidCommand),
    Symtab(SymtabCommand),
    Symseg(SymsegCommand),
    Thread(ThreadCommand),
    Unixthread(ThreadCommand),
    LoadFvmlib(FvmlibCommand),
    IdFvmlib(FvmlibCommand),
    Ident(IdentCommand),
    Fvmfile(FvmfileCommand),
    Prepage(LoadCommandHeader),
    Dysymtab(DysymtabCommand),
    LoadDylib(DylibCommand),
    IdDylib(DylibCommand),
    LoadDylinker(DylinkerCommand),
    IdDylinker(DylinkerCommand),
    PreboundDylib(PreboundDylibCommand),
    Routines32(RoutinesCommand32),
    Routines64(RoutinesCommand64),
    SubFramework(SubFrameworkCommand),
    SubUmbrella(SubUmbrellaCommand),
    SubClient(SubClientCommand),
    SubLibrary(SubLibraryCommand),
    TwolevelHints(TwolevelHintsCommand),
    PrebindCksum(PrebindCksumCommand),
    LoadWeakDylib(DylibCommand),
    Rpath(RpathCommand),
    CodeSignature(LinkeditDataCommand),
    SegmentSplitInfo(LinkeditDataCommand),
    ReexportDylib(DylibCommand),
    LazyLoadDylib(DylibCommand),
    EncryptionInfo32(EncryptionInfoCommand32),
    EncryptionInfo64(EncryptionInfoCommand64),
    DyldInfo(DyldInfoCommand),
    DyldInfoOnly(DyldInfoCommand),
    LoadUpwardDylib(DylibCommand),
    VersionMinMacosx(VersionMinCommand),
    VersionMinIphoneos(VersionMinCommand),
    FunctionStarts(LinkeditDataCommand),
    DyldEnvironment(DylinkerCommand),
    Main(EntryPointCommand),
    DataInCode(LinkeditDataCommand),
    SourceVersion(SourceVersionCommand),
    DylibCodeSignDrs(LinkeditDataCommand),
    LinkerOption(LinkeditDataCommand),
    LinkerOptimizationHint(LinkeditDataCommand),
    VersionMinTvos(VersionMinCommand),
    VersionMinWatchos(VersionMinCommand),
    DyldExportsTrie(LinkeditDataCommand),
    DyldChainedFixups(LinkeditDataCommand),
    Unimplemented(LoadCommandHeader),
}

The various load commands as a cast-free variant/enum

Variants

Segment32(SegmentCommand32)
Segment64(SegmentCommand64)
Uuid(UuidCommand)
Symtab(SymtabCommand)
Symseg(SymsegCommand)
Thread(ThreadCommand)
Unixthread(ThreadCommand)
LoadFvmlib(FvmlibCommand)
IdFvmlib(FvmlibCommand)
Ident(IdentCommand)
Fvmfile(FvmfileCommand)
Prepage(LoadCommandHeader)
Dysymtab(DysymtabCommand)
LoadDylib(DylibCommand)
IdDylib(DylibCommand)
LoadDylinker(DylinkerCommand)
IdDylinker(DylinkerCommand)
PreboundDylib(PreboundDylibCommand)
Routines32(RoutinesCommand32)
Routines64(RoutinesCommand64)
SubFramework(SubFrameworkCommand)
SubUmbrella(SubUmbrellaCommand)
SubClient(SubClientCommand)
SubLibrary(SubLibraryCommand)
TwolevelHints(TwolevelHintsCommand)
PrebindCksum(PrebindCksumCommand)
LoadWeakDylib(DylibCommand)
Rpath(RpathCommand)
CodeSignature(LinkeditDataCommand)
SegmentSplitInfo(LinkeditDataCommand)
ReexportDylib(DylibCommand)
LazyLoadDylib(DylibCommand)
EncryptionInfo32(EncryptionInfoCommand32)
EncryptionInfo64(EncryptionInfoCommand64)
DyldInfo(DyldInfoCommand)
DyldInfoOnly(DyldInfoCommand)
LoadUpwardDylib(DylibCommand)
VersionMinMacosx(VersionMinCommand)
VersionMinIphoneos(VersionMinCommand)
FunctionStarts(LinkeditDataCommand)
DyldEnvironment(DylinkerCommand)
Main(EntryPointCommand)
DataInCode(LinkeditDataCommand)
SourceVersion(SourceVersionCommand)
DylibCodeSignDrs(LinkeditDataCommand)
LinkerOption(LinkeditDataCommand)
LinkerOptimizationHint(LinkeditDataCommand)
VersionMinTvos(VersionMinCommand)
VersionMinWatchos(VersionMinCommand)
DyldExportsTrie(LinkeditDataCommand)
DyldChainedFixups(LinkeditDataCommand)
Unimplemented(LoadCommandHeader)

Implementations

impl CommandVariant[src]

pub fn cmdsize(&self) -> usize[src]

pub fn cmd(&self) -> u32[src]

Trait Implementations

impl Debug for CommandVariant[src]

impl<'a> TryFromCtx<'a, Endian, [u8]> for CommandVariant[src]

type Error = Error

Auto Trait Implementations

impl RefUnwindSafe for CommandVariant

impl Send for CommandVariant

impl Sync for CommandVariant

impl Unpin for CommandVariant

impl UnwindSafe for CommandVariant

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.