pub struct Code { /* private fields */ }Expand description
Owned SecCodeRef for a running process.
Implementations§
Source§impl Code
impl Code
Sourcepub fn current() -> Result<Self>
pub fn current() -> Result<Self>
Capture the current process as a SecCodeRef.
§Errors
Returns an error if Security.framework cannot create the code object.
Sourcepub fn signing_information(&self) -> Result<SigningInformation>
pub fn signing_information(&self) -> Result<SigningInformation>
Fetch signing information for this code object.
§Errors
Returns an error if Security.framework rejects the query or returns an unexpected type.
Sourcepub const fn as_raw(&self) -> SecCodeRef
pub const fn as_raw(&self) -> SecCodeRef
Borrow the raw SecCodeRef.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl !Send for Code
impl !Sync 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