Enum tugger_code_signing::Signable[][src]

pub enum Signable {
    WindowsFile(PathBuf),
    WindowsData(Vec<u8>),
    MachOFile(PathBuf, Vec<u8>),
    MachOData(Vec<u8>),
    AppleBundle(PathBuf),
}
Expand description

Represents a known, typed entity which is signable.

Variants

WindowsFile

A file that is signable on Windows.

Tuple Fields of WindowsFile

0: PathBuf
WindowsData

Data that is signable on Windows.

TODO store a Cow.

Tuple Fields of WindowsData

0: Vec<u8>
MachOFile

A signable Mach-O file.

We have to obtain the Mach-O data as part of evaluating whether it is signable. So we keep a reference to it to avoid a re-read later.

Tuple Fields of MachOFile

0: PathBuf1: Vec<u8>
MachOData

Signable Mach-O data.

Tuple Fields of MachOData

0: Vec<u8>
AppleBundle

An Apple bundle, persisted on the filesystem as a directory.

Tuple Fields of AppleBundle

0: PathBuf

Implementations

Obtain signing methods that are supported.

Whether we are capable of signing.

Obtain the filesystem path of the signable entity, if it is backed by a file.

Obtain the filesystem path of the signable directory, if it is backed by a directory.

Resolves the compatibility for signing this entity to a given SigningDestination.

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

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

Performs the conversion.

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

Performs the conversion.

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)

recently added

Uses borrowed data to replace owned data, usually by cloning. 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.