Enum tugger_code_signing::SignableCandidate[][src]

pub enum SignableCandidate<'a> {
    Path(Cow<'a, Path>),
    Data(Cow<'a, [u8]>),
    Forced(Signable),
}
Expand description

Represents an entity that is a candidate for signing.

Most users will want to use Self::Path or Self::Data, which will go through signability checks and only turn into signable entities if we have a high degree of confidence that they can be signed.

The Self::Forced variant can be used to forcefully skip signability validation and supply your own Signability. Use this when our signability heuristics fail (please consider reporting these scenarios as bugs!). This variant is also useful for testing.

Variants

Path(Cow<'a, Path>)

A filesystem path.

Will be checked for signability.

Tuple Fields of Path

0: Cow<'a, Path>
Data(Cow<'a, [u8]>)

A slice of data in memory.

Will be checked for signability.

Tuple Fields of Data

0: Cow<'a, [u8]>
Forced(Signable)

Entity whose Signable is already computed.

Tuple Fields of Forced

0: Signable

Trait Implementations

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

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.

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.

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.

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 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