pub struct CSIdentityQuery { /* private fields */ }Available on crate feature
CSIdentity only.Expand description
Implementations§
Source§impl CSIdentityQuery
impl CSIdentityQuery
Sourcepub unsafe fn new(
allocator: Option<&CFAllocator>,
identity_class: CSIdentityClass,
authority: Option<&CSIdentityAuthority>,
) -> Option<CFRetained<CSIdentityQuery>>
Available on crate features OSServices and CSIdentityQuery and CSIdentityAuthority only.
pub unsafe fn new( allocator: Option<&CFAllocator>, identity_class: CSIdentityClass, authority: Option<&CSIdentityAuthority>, ) -> Option<CFRetained<CSIdentityQuery>>
OSServices and CSIdentityQuery and CSIdentityAuthority only.§Safety
allocatormight not allowNone.authoritymight not allowNone.
Sourcepub unsafe fn new_for_name(
allocator: Option<&CFAllocator>,
name: Option<&CFString>,
comparison_method: CSIdentityQueryStringComparisonMethod,
identity_class: CSIdentityClass,
authority: Option<&CSIdentityAuthority>,
) -> Option<CFRetained<CSIdentityQuery>>
Available on crate features OSServices and CSIdentityQuery and CSIdentityAuthority only.
pub unsafe fn new_for_name( allocator: Option<&CFAllocator>, name: Option<&CFString>, comparison_method: CSIdentityQueryStringComparisonMethod, identity_class: CSIdentityClass, authority: Option<&CSIdentityAuthority>, ) -> Option<CFRetained<CSIdentityQuery>>
OSServices and CSIdentityQuery and CSIdentityAuthority only.§Safety
allocatormight not allowNone.namemight not allowNone.authoritymight not allowNone.
Sourcepub unsafe fn new_for_uuid(
allocator: Option<&CFAllocator>,
uuid: Option<&CFUUID>,
authority: Option<&CSIdentityAuthority>,
) -> Option<CFRetained<CSIdentityQuery>>
Available on crate features OSServices and CSIdentityQuery and CSIdentityAuthority only.
pub unsafe fn new_for_uuid( allocator: Option<&CFAllocator>, uuid: Option<&CFUUID>, authority: Option<&CSIdentityAuthority>, ) -> Option<CFRetained<CSIdentityQuery>>
OSServices and CSIdentityQuery and CSIdentityAuthority only.§Safety
allocatormight not allowNone.uuidmight not allowNone.authoritymight not allowNone.
Sourcepub unsafe fn new_for_posix_id(
allocator: Option<&CFAllocator>,
posix_id: id_t,
identity_class: CSIdentityClass,
authority: Option<&CSIdentityAuthority>,
) -> Option<CFRetained<CSIdentityQuery>>
Available on crate features OSServices and CSIdentityQuery and CSIdentityAuthority and libc only.
pub unsafe fn new_for_posix_id( allocator: Option<&CFAllocator>, posix_id: id_t, identity_class: CSIdentityClass, authority: Option<&CSIdentityAuthority>, ) -> Option<CFRetained<CSIdentityQuery>>
OSServices and CSIdentityQuery and CSIdentityAuthority and libc only.§Safety
allocatormight not allowNone.authoritymight not allowNone.
Sourcepub unsafe fn new_for_persistent_reference(
allocator: Option<&CFAllocator>,
reference_data: Option<&CFData>,
) -> Option<CFRetained<CSIdentityQuery>>
Available on crate features OSServices and CSIdentityQuery only.
pub unsafe fn new_for_persistent_reference( allocator: Option<&CFAllocator>, reference_data: Option<&CFData>, ) -> Option<CFRetained<CSIdentityQuery>>
OSServices and CSIdentityQuery only.§Safety
allocatormight not allowNone.reference_datamight not allowNone.
Sourcepub unsafe fn new_for_current_user(
allocator: Option<&CFAllocator>,
) -> Option<CFRetained<CSIdentityQuery>>
Available on crate features OSServices and CSIdentityQuery only.
pub unsafe fn new_for_current_user( allocator: Option<&CFAllocator>, ) -> Option<CFRetained<CSIdentityQuery>>
OSServices and CSIdentityQuery only.§Safety
allocator might not allow None.
pub unsafe fn results(&self) -> Option<CFRetained<CFArray>>
Available on crate features
OSServices and CSIdentityQuery only.Source§impl CSIdentityQuery
impl CSIdentityQuery
Sourcepub unsafe fn execute_asynchronously(
&self,
flags: CSIdentityQueryFlags,
client_context: *const CSIdentityQueryClientContext,
run_loop: Option<&CFRunLoop>,
run_loop_mode: Option<&CFString>,
) -> bool
Available on crate features OSServices and CSIdentityQuery only.
pub unsafe fn execute_asynchronously( &self, flags: CSIdentityQueryFlags, client_context: *const CSIdentityQueryClientContext, run_loop: Option<&CFRunLoop>, run_loop_mode: Option<&CFString>, ) -> bool
OSServices and CSIdentityQuery only.§Safety
client_contextmust be a valid pointer.run_looppossibly has additional threading requirements.run_loopmight not allowNone.run_loop_modemight not allowNone.
pub unsafe fn stop(&self)
Available on crate features
OSServices and CSIdentityQuery only.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 CFNumbers, small CFStrings 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 CSIdentityQuery
Available on crate feature OSServices only.
impl AsRef<AnyObject> for CSIdentityQuery
Available on crate feature
OSServices only.Source§impl AsRef<CFType> for CSIdentityQuery
Available on crate feature OSServices only.
impl AsRef<CFType> for CSIdentityQuery
Available on crate feature
OSServices only.Source§impl AsRef<CSIdentityQuery> for CSIdentityQuery
Available on crate feature OSServices only.
impl AsRef<CSIdentityQuery> for CSIdentityQuery
Available on crate feature
OSServices only.Source§impl Borrow<AnyObject> for CSIdentityQuery
Available on crate feature OSServices only.
impl Borrow<AnyObject> for CSIdentityQuery
Available on crate feature
OSServices only.Source§impl Borrow<CFType> for CSIdentityQuery
Available on crate feature OSServices only.
impl Borrow<CFType> for CSIdentityQuery
Available on crate feature
OSServices only.Source§impl ConcreteType for CSIdentityQuery
Available on crate features CSIdentityQuery and OSServices only.
impl ConcreteType for CSIdentityQuery
Available on crate features
CSIdentityQuery and OSServices only.Source§impl Debug for CSIdentityQuery
Available on crate feature OSServices only.
impl Debug for CSIdentityQuery
Available on crate feature
OSServices only.Source§impl Deref for CSIdentityQuery
Available on crate feature OSServices only.
impl Deref for CSIdentityQuery
Available on crate feature
OSServices only.Source§impl Hash for CSIdentityQuery
Available on crate feature OSServices only.
impl Hash for CSIdentityQuery
Available on crate feature
OSServices only.Source§impl Message for CSIdentityQuery
Available on crate feature OSServices only.
impl Message for CSIdentityQuery
Available on crate feature
OSServices only.Source§impl PartialEq for CSIdentityQuery
Available on crate feature OSServices only.
impl PartialEq for CSIdentityQuery
Available on crate feature
OSServices only.Source§impl RefEncode for CSIdentityQuery
Available on crate feature OSServices only.
impl RefEncode for CSIdentityQuery
Available on crate feature
OSServices only.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 CSIdentityQuery
Available on crate feature OSServices only.
impl Type for CSIdentityQuery
Available on crate feature
OSServices only.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 CSIdentityQuery
Available on crate feature
OSServices only.Auto Trait Implementations§
impl !Freeze for CSIdentityQuery
impl !RefUnwindSafe for CSIdentityQuery
impl !Send for CSIdentityQuery
impl !Sync for CSIdentityQuery
impl !Unpin for CSIdentityQuery
impl !UnwindSafe for CSIdentityQuery
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