Struct tugger_windows::SigntoolSign[][src]

pub struct SigntoolSign { /* fields omitted */ }

Represents an invocation of signtool.exe sign to sign some files.

Implementations

impl SigntoolSign[src]

pub fn new(certificate: X509SigningCertificate) -> Self[src]

Construct a new instance using a specified signing certificate.

pub fn clone_settings(&self) -> Self[src]

Clone this instance, but not the list of files to sign.

pub fn verbose(&mut self) -> &mut Self[src]

Run signtool in verbose mode.

Activates the /v flag.

pub fn debug(&mut self) -> &mut Self[src]

Run signtool in debug mode.

Activates the /debug flag.

pub fn description(&mut self, description: impl ToString) -> &mut Self[src]

Set the description of the content to be signed.

This is passed into the /d argument.

pub fn file_digest_algorithm(&mut self, algorithm: impl ToString) -> &mut Self[src]

Set the file digest algorithm to use.

This is passed into the /fd argument.

pub fn timestamp_server(&mut self, server: TimestampServer) -> &mut Self[src]

Set the timestamp server to use when signing.

pub fn extra_args(
    &mut self,
    extra_args: impl Iterator<Item = impl ToString>
) -> &mut Self
[src]

Set extra arguments to pass to signtool.

Ideally this would not be used. Consider adding a separate API for use cases that require this.

pub fn sign_file(&mut self, path: impl AsRef<Path>) -> &mut Self[src]

Mark a file path as to be signed.

pub fn run(&self, logger: &Logger) -> Result<()>[src]

Run signtool sign with requested options.

Trait Implementations

impl Clone for SigntoolSign[src]

impl Debug for SigntoolSign[src]

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

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,