pub enum CodeId {
    PeCodeId(PeCodeId),
    MachoUuid(Uuid),
    ElfBuildId(ElfBuildId),
}
Expand description

An enum carrying an identifier for a binary. This is stores the same information as a debugid::CodeId, but without projecting it down to a string.

All types need to be treated rather differently, see their respective documentation.

Variants§

§

PeCodeId(PeCodeId)

The code ID for a Windows PE file. When combined with the binary name, the code ID lets you obtain binaries from symbol servers. It is not useful on its own, it has to be paired with the binary name.

On Windows, a binary’s code ID is distinct from its debug ID (= pdb GUID + age). If you have a binary file, you can get both the code ID and the debug ID from it. If you only have a PDB file, you usually cannot get the code ID of the corresponding binary from it.

§

MachoUuid(Uuid)

The code ID for a macOS / iOS binary (mach-O). This is just the mach-O UUID. The mach-O UUID is shared between both the binary file and the debug file (dSYM), and it can be used on its own to find dSYMs using Spotlight.

The debug ID and the code ID contain the same information; the debug ID is literally just the UUID plus a zero at the end.

§

ElfBuildId(ElfBuildId)

The code ID for a Linux ELF file. This is the “ELF build ID” (also called “GNU build ID”). The build ID is usually 20 bytes, commonly written out as 40 hex chars.

It can be used to find debug files on the local file system or to download binaries or debug files from a debuginfod symbol server. it does not have to be paired with the binary name.

An ELF binary’s code ID is more useful than its debug ID: The debug ID is truncated to 16 bytes (32 hex characters), whereas the code ID is the full ELF build ID.

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
Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s to return a value of this type. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method returns an Ordering between self and other. Read more
Compares and returns the maximum of two values. Read more
Compares and returns the minimum of two values. Read more
Restrict a value to a certain interval. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
This method tests greater than or equal to (for self and other) and is used by the >= operator. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String. 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.