Enum tugger_apple_codesign::ExecutionPolicy[][src]

pub enum ExecutionPolicy {
    DeveloperIdSigned,
    DeveloperIdNotarizedExecutable,
    DeveloperIdNotarizedInstaller,
}

Defines well-known execution policies for signed code.

Instances can be obtained from a human-readable string for convenience. Those strings are:

  • developer-id-signed
  • developer-id-notarized-executable
  • developer-id-notarized-installer

Variants

DeveloperIdSigned

Code is signed by a certificate authorized for signing Mac applications or installers and that certificate was issued by crate::apple_certificates::KnownCertificate::DeveloperId.

This is the policy that applies when you get a Developer ID Application or Developer ID Installer certificate from Apple.

DeveloperIdNotarizedExecutable

Like Self::DeveloperIdSigned but only applies to executables (not installers) and the executable must be notarized.

If you notarize an individual executable, you effectively convert the Self::DeveloperIdSigned policy into this variant.

DeveloperIdNotarizedInstaller

Like Self::DeveloperIdSigned but only applies to installers (not executables) and the installer must be notarized.

If you notarize an individual installer, you effectively convert the Self::DeveloperIdSigned policy into this variant.

Methods from Deref<Target = CodeRequirementExpression<'static>>

pub fn write_to(&self, dest: &mut impl Write) -> Result<(), AppleCodesignError>[src]

Write binary representation of this expression to a destination.

pub fn to_bytes(&self) -> Result<Vec<u8>, AppleCodesignError>[src]

Produce the binary serialization of this expression.

The blob header/magic is not included.

Trait Implementations

impl Deref for ExecutionPolicy[src]

type Target = CodeRequirementExpression<'static>

The resulting type after dereferencing.

fn deref(&self) -> &Self::Target[src]

Dereferences the value.

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

type Error = AppleCodesignError

The type returned in the event of a conversion error.

fn try_from(s: &str) -> Result<Self, Self::Error>[src]

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T> Instrument for T[src]

fn instrument(self, span: Span) -> Instrumented<Self>[src]

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

fn in_current_span(self) -> Instrumented<Self>[src]

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

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

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> Same<T> for T

type Output = T

Should always be Self

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

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