Struct tugger_windows::SigntoolSign [−][src]
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]
&mut self,
extra_args: impl Iterator<Item = impl ToString>
) -> &mut Self
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]
fn clone(&self) -> SigntoolSign
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for SigntoolSign
[src]
Auto Trait Implementations
impl RefUnwindSafe for SigntoolSign
impl Send for SigntoolSign
impl Sync for SigntoolSign
impl Unpin for SigntoolSign
impl UnwindSafe for SigntoolSign
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,