Enum tugger_apple_codesign::SettingsScope[][src]

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

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

impl AsRef<SettingsScope> for SettingsScope[src]

impl Clone for SettingsScope[src]

impl Debug for SettingsScope[src]

impl Display for SettingsScope[src]

impl Eq for SettingsScope[src]

impl Hash for SettingsScope[src]

impl Ord for SettingsScope[src]

impl PartialEq<SettingsScope> for SettingsScope[src]

impl PartialOrd<SettingsScope> for SettingsScope[src]

impl StructuralEq for SettingsScope[src]

impl StructuralPartialEq for SettingsScope[src]

impl TryFrom<&'_ str> for SettingsScope[src]

type Error = AppleCodesignError

The type returned in the event of a conversion error.

Auto Trait Implementations

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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.