pub enum Signer {
MacOsIdentity(MacOsSigner),
MacOsAdHoc,
Windows(WindowsSigner),
}Expand description
A configured signer, determined from the environment and target triple.
Variants§
Implementations§
Source§impl Signer
impl Signer
Sourcepub fn from_env(target_triple: &str) -> Result<Option<Self>, SignConfigError>
pub fn from_env(target_triple: &str) -> Result<Option<Self>, SignConfigError>
Detect signing configuration from environment variables and target triple.
§Errors
SignConfigError::MacOswhen macOS signing env vars are partially set or the certificate is invalid base64.SignConfigError::Windowswhen Windows signing env vars are partially set.
Returns Ok(None) when signing is intentionally unavailable for this
target (e.g., no credentials configured, or an unsupported platform).
Sourcepub fn begin_session(self) -> Result<SigningSession, SignError>
pub fn begin_session(self) -> Result<SigningSession, SignError>
Prepare a signing session.
For macOS identity signing this creates a shared ephemeral keychain
(with an exclusive file lock) that is reused for every file signed
during the session. Call SigningSession::sign for each artifact.
§Errors
SignError::Codesignif the macOS ephemeral keychain cannot be created or the certificate cannot be imported.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Signer
impl RefUnwindSafe for Signer
impl Send for Signer
impl Sync for Signer
impl Unpin for Signer
impl UnsafeUnpin for Signer
impl UnwindSafe for Signer
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