pub enum SettingsScope {
    Main,
    Path(String),
    MultiArchIndex(usize),
    MultiArchCpuType(CpuType),
    PathMultiArchIndex(Stringusize),
    PathMultiArchCpuType(StringCpuType),
}
Expand description

Denotes the scope for a setting.

Settings have an associated scope defined by this type. This allows settings to apply to exactly what you want them to apply to.

Scopes can be converted from a string representation. The following syntax is recognized:

Recognized cpu_type String Values

The following cpu_type= string values are recognized:

Variants

Main

The main entity being signed.

Can be a Mach-O file, a bundle, or any other primitive this crate supports signing.

When signing a bundle or any primitive with nested elements (such as a fat/universal Mach-O binary), settings can propagate to nested elements.

Path(String)

Filesystem path.

Can refer to a Mach-O file, a nested bundle, or any other filesystem based primitive that can be traversed into when performing nested signing.

The string value refers to the filesystem relative path of the entity relative to the main entity being signed.

MultiArchIndex(usize)

A single Mach-O binary within a fat/universal Mach-O binary.

The binary to operate on is defined by its 0-based index within the fat/universal Mach-O container.

MultiArchCpuType(CpuType)

A single Mach-O binary within a fat/universal Mach-O binary.

The binary to operate on is defined by its CPU architecture.

PathMultiArchIndex(Stringusize)

Combination of SettingsScope::Path and SettingsScope::MultiArchIndex.

This refers to a single Mach-O binary within a fat/universal binary at a given relative path.

PathMultiArchCpuType(StringCpuType)

Combination of SettingsScope::Path and SettingsScope::MultiArchCpuType.

This refers to a single Mach-O binary within a fat/universal binary at a given relative path.

Trait Implementations

Performs the conversion.

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

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 ==. Read more

This method tests for !=.

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

The type returned in the event of a conversion error.

Performs the conversion.

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

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

Should always be Self

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

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more