Struct security_framework::os::macos::code_signing::GuestAttributes
source · pub struct GuestAttributes { /* private fields */ }
Expand description
A helper to create guest attributes, which are normally passed as a
CFDictionary
with varying types.
Implementations§
source§impl GuestAttributes
impl GuestAttributes
sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new, empty GuestAttributes
. You must add values to it in
order for it to be of any use.
sourcepub fn set_audit_token(&mut self, token: CFDataRef)
pub fn set_audit_token(&mut self, token: CFDataRef)
The guest’s audit token.
sourcepub fn set_other<V: ToVoid<V>>(&mut self, key: CFStringRef, value: V)
pub fn set_other<V: ToVoid<V>>(&mut self, key: CFStringRef, value: V)
Support for arbirtary guest attributes.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for GuestAttributes
impl !Send for GuestAttributes
impl !Sync for GuestAttributes
impl Unpin for GuestAttributes
impl UnwindSafe for GuestAttributes
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