pub struct Code { /* private fields */ }Available on macOS and crate feature
full only.Expand description
Wraps SecCodeRef.
Implementations§
Source§impl Code
impl Code
Sourcepub fn guest_with_attributes(
host: Option<&Self>,
attributes: Option<&Value>,
flags: CodeSigningFlags,
) -> Result<Self>
pub fn guest_with_attributes( host: Option<&Self>, attributes: Option<&Value>, flags: CodeSigningFlags, ) -> Result<Self>
Wraps the corresponding SecCodeRef operation.
Sourcepub fn static_code(&self) -> Result<StaticCode>
pub fn static_code(&self) -> Result<StaticCode>
Wraps the corresponding SecCodeRef operation.
pub fn guest_with_audit_token(audit_token: &AuditToken) -> Result<Self>
pub unsafe fn from_xpc_message(message: *mut c_void) -> Result<Self>
pub fn audit_token(&self) -> Option<AuditToken>
pub fn check_validity( &self, flags: CodeSigningFlags, requirement: Option<&Requirement>, ) -> Result<()>
Sourcepub fn signing_information(&self) -> Result<SigningInformation>
pub fn signing_information(&self) -> Result<SigningInformation>
Wraps the corresponding SecCodeRef operation.
Trait Implementations§
Auto Trait Implementations§
impl !Send for Code
impl !Sync for Code
impl Freeze for Code
impl RefUnwindSafe for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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