#[repr(C)]pub struct CSIdentity { /* private fields */ }
Available on crate features
CSIdentity
and OSServices
only.Expand description
Implementations§
Source§impl CSIdentity
impl CSIdentity
pub unsafe fn new( allocator: Option<&CFAllocator>, identity_class: CSIdentityClass, full_name: Option<&CFString>, posix_name: Option<&CFString>, flags: CSIdentityFlags, authority: Option<&CSIdentityAuthority>, ) -> Option<CFRetained<CSIdentity>>
Available on crate feature
CSIdentityAuthority
only.pub unsafe fn new_copy( allocator: Option<&CFAllocator>, identity: Option<&CSIdentity>, ) -> Option<CFRetained<CSIdentity>>
pub unsafe fn class(self: &CSIdentity) -> CSIdentityClass
Available on crate feature
CSIdentityAuthority
only.pub unsafe fn uuid(self: &CSIdentity) -> Option<CFRetained<CFUUID>>
pub unsafe fn full_name(self: &CSIdentity) -> Option<CFRetained<CFString>>
pub unsafe fn posix_id(self: &CSIdentity) -> id_t
Available on crate feature
libc
only.pub unsafe fn posix_name(self: &CSIdentity) -> Option<CFRetained<CFString>>
pub unsafe fn email_address(self: &CSIdentity) -> Option<CFRetained<CFString>>
pub unsafe fn image_url(self: &CSIdentity) -> Option<CFRetained<CFURL>>
pub unsafe fn image_data(self: &CSIdentity) -> Option<CFRetained<CFData>>
pub unsafe fn image_data_type(self: &CSIdentity) -> Option<CFRetained<CFString>>
pub unsafe fn aliases(self: &CSIdentity) -> Option<CFRetained<CFArray>>
pub unsafe fn is_member_of_group( self: &CSIdentity, group: Option<&CSIdentity>, ) -> bool
pub unsafe fn new_persistent_reference( allocator: Option<&CFAllocator>, identity: Option<&CSIdentity>, ) -> Option<CFRetained<CFData>>
pub unsafe fn is_enabled(self: &CSIdentity) -> bool
pub unsafe fn authenticate_using_password( self: &CSIdentity, password: Option<&CFString>, ) -> bool
pub unsafe fn certificate( self: &CSIdentity, ) -> Option<CFRetained<SecCertificate>>
Available on crate feature
objc2-security
only.pub unsafe fn new_group_membership_query( allocator: Option<&CFAllocator>, group: Option<&CSIdentity>, ) -> Option<CFRetained<CSIdentityQuery>>
pub unsafe fn set_full_name(self: &CSIdentity, full_name: Option<&CFString>)
pub unsafe fn set_email_address( self: &CSIdentity, email_address: Option<&CFString>, )
pub unsafe fn set_image_url(self: &CSIdentity, url: Option<&CFURL>)
pub unsafe fn set_image_data( self: &CSIdentity, image_data: Option<&CFData>, image_data_type: Option<&CFString>, )
pub unsafe fn add_alias(self: &CSIdentity, alias: Option<&CFString>)
pub unsafe fn remove_alias(self: &CSIdentity, alias: Option<&CFString>)
pub unsafe fn add_member(self: &CSIdentity, member: Option<&CSIdentity>)
pub unsafe fn remove_member(self: &CSIdentity, member: Option<&CSIdentity>)
pub unsafe fn set_is_enabled(self: &CSIdentity, is_enabled: bool)
pub unsafe fn set_password(self: &CSIdentity, password: Option<&CFString>)
pub unsafe fn set_certificate( self: &CSIdentity, certificate: Option<&SecCertificate>, )
Available on crate feature
objc2-security
only.pub unsafe fn delete(self: &CSIdentity)
pub unsafe fn commit( self: &CSIdentity, authorization: AuthorizationRef, error: *mut *mut CFError, ) -> bool
Available on crate feature
objc2-security
only.Source§impl CSIdentity
impl CSIdentity
pub unsafe fn commit_asynchronously( self: &CSIdentity, client_context: *const CSIdentityClientContext, run_loop: Option<&CFRunLoop>, run_loop_mode: Option<&CFString>, authorization: AuthorizationRef, ) -> bool
Available on crate feature
objc2-security
only.pub unsafe fn is_committing(self: &CSIdentity) -> bool
pub unsafe fn remove_client(self: &CSIdentity)
Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
Available on crate features SearchKit
and SKDocument
only.
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
SearchKit
and SKDocument
only.Attempt to downcast the type to that of type T
.
This is the reference-variant. Use CFRetained::downcast
if you
want to convert a retained type. See also ConcreteType
for more
details on which types support being converted to.
Sourcepub fn retain_count(&self) -> usize
Available on crate features SearchKit
and SKDocument
only.
pub fn retain_count(&self) -> usize
SearchKit
and SKDocument
only.Get the reference count of the object.
This function may be useful for debugging. You normally do not use this function otherwise.
Beware that some things (like CFNumber
s, small CFString
s etc.) may
not have a normal retain count for optimization purposes, and can
return usize::MAX
in that case.
Trait Implementations§
Source§impl AsRef<AnyObject> for CSIdentity
impl AsRef<AnyObject> for CSIdentity
Source§impl AsRef<CFType> for CSIdentity
impl AsRef<CFType> for CSIdentity
Source§impl AsRef<CSIdentity> for CSIdentity
impl AsRef<CSIdentity> for CSIdentity
Source§impl Borrow<AnyObject> for CSIdentity
impl Borrow<AnyObject> for CSIdentity
Source§impl Borrow<CFType> for CSIdentity
impl Borrow<CFType> for CSIdentity
Source§impl ConcreteType for CSIdentity
impl ConcreteType for CSIdentity
Source§impl Debug for CSIdentity
impl Debug for CSIdentity
Source§impl Deref for CSIdentity
impl Deref for CSIdentity
Source§impl Hash for CSIdentity
impl Hash for CSIdentity
Source§impl Message for CSIdentity
impl Message for CSIdentity
Source§impl PartialEq for CSIdentity
impl PartialEq for CSIdentity
Source§impl RefEncode for CSIdentity
impl RefEncode for CSIdentity
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
Source§impl Type for CSIdentity
impl Type for CSIdentity
Source§fn retain(&self) -> CFRetained<Self>where
Self: Sized,
fn retain(&self) -> CFRetained<Self>where
Self: Sized,
Increment the reference count of the receiver. Read more
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
👎Deprecated: this is redundant
Helper for easier transition from the
core-foundation
crate.Source§unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_get_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
👎Deprecated: use CFRetained::retain
Helper for easier transition from the
core-foundation
crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
👎Deprecated: this is redundant (CF types deref to CFType)
Helper for easier transition from the
core-foundation
crate.Source§unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
unsafe fn wrap_under_create_rule(ptr: *const Self) -> CFRetained<Self>where
Self: Sized,
👎Deprecated: use CFRetained::from_raw
Helper for easier transition from the
core-foundation
crate. Read moreimpl Eq for CSIdentity
Auto Trait Implementations§
impl !Freeze for CSIdentity
impl !RefUnwindSafe for CSIdentity
impl !Send for CSIdentity
impl !Sync for CSIdentity
impl !Unpin for CSIdentity
impl !UnwindSafe for CSIdentity
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