pub enum SigningSession {
MacOsIdentity(MacOsSigningSession),
MacOsAdHoc,
Windows(WindowsSigner),
}Expand description
An active signing session.
For macOS identity signing the session holds a shared ephemeral keychain and an exclusive file lock on the keychain search list, amortising the setup cost across all artifacts and preventing races with concurrent processes.
Variants§
Implementations§
Source§impl SigningSession
impl SigningSession
Sourcepub fn sign(&self, path: &Path) -> Result<(), SignError>
pub fn sign(&self, path: &Path) -> Result<(), SignError>
Sign a single file.
§Errors
SignError::Codesignif macOScodesignfails (identity or ad-hoc).SignError::Signtoolif Windowssigntoolfails.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SigningSession
impl RefUnwindSafe for SigningSession
impl Send for SigningSession
impl Sync for SigningSession
impl Unpin for SigningSession
impl UnsafeUnpin for SigningSession
impl UnwindSafe for SigningSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more