#[repr(C)]pub struct CSIdentityQuery { /* private fields */ }
Available on crate features
CSIdentity
and OSServices
only.Expand description
Implementations§
Source§impl CSIdentityQuery
impl CSIdentityQuery
pub unsafe fn new( allocator: Option<&CFAllocator>, identity_class: CSIdentityClass, authority: Option<&CSIdentityAuthority>, ) -> Option<CFRetained<CSIdentityQuery>>
Available on crate features
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>>
Available on crate features
CSIdentityQuery
and CSIdentityAuthority
only.pub unsafe fn new_for_uuid( allocator: Option<&CFAllocator>, uuid: Option<&CFUUID>, authority: Option<&CSIdentityAuthority>, ) -> Option<CFRetained<CSIdentityQuery>>
Available on crate features
CSIdentityQuery
and CSIdentityAuthority
only.pub 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
CSIdentityQuery
and CSIdentityAuthority
and libc
only.pub unsafe fn new_for_persistent_reference( allocator: Option<&CFAllocator>, reference_data: Option<&CFData>, ) -> Option<CFRetained<CSIdentityQuery>>
Available on crate feature
CSIdentityQuery
only.pub unsafe fn new_for_current_user( allocator: Option<&CFAllocator>, ) -> Option<CFRetained<CSIdentityQuery>>
Available on crate feature
CSIdentityQuery
only.pub unsafe fn results(self: &CSIdentityQuery) -> Option<CFRetained<CFArray>>
Available on crate feature
CSIdentityQuery
only.pub unsafe fn execute( self: &CSIdentityQuery, flags: CSIdentityQueryFlags, error: *mut *mut CFError, ) -> bool
Available on crate feature
CSIdentityQuery
only.Source§impl CSIdentityQuery
impl CSIdentityQuery
pub unsafe fn execute_asynchronously( self: &CSIdentityQuery, flags: CSIdentityQueryFlags, client_context: *const CSIdentityQueryClientContext, run_loop: Option<&CFRunLoop>, run_loop_mode: Option<&CFString>, ) -> bool
Available on crate feature
CSIdentityQuery
only.pub unsafe fn stop(self: &CSIdentityQuery)
Available on crate feature
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 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 CSIdentityQuery
impl AsRef<AnyObject> for CSIdentityQuery
Source§impl AsRef<CFType> for CSIdentityQuery
impl AsRef<CFType> for CSIdentityQuery
Source§impl AsRef<CSIdentityQuery> for CSIdentityQuery
impl AsRef<CSIdentityQuery> for CSIdentityQuery
Source§impl Borrow<AnyObject> for CSIdentityQuery
impl Borrow<AnyObject> for CSIdentityQuery
Source§impl Borrow<CFType> for CSIdentityQuery
impl Borrow<CFType> for CSIdentityQuery
Source§impl ConcreteType for CSIdentityQuery
Available on crate feature CSIdentityQuery
only.
impl ConcreteType for CSIdentityQuery
Available on crate feature
CSIdentityQuery
only.Source§impl Debug for CSIdentityQuery
impl Debug for CSIdentityQuery
Source§impl Deref for CSIdentityQuery
impl Deref for CSIdentityQuery
Source§impl Hash for CSIdentityQuery
impl Hash for CSIdentityQuery
Source§impl Message for CSIdentityQuery
impl Message for CSIdentityQuery
Source§impl PartialEq for CSIdentityQuery
impl PartialEq for CSIdentityQuery
Source§impl RefEncode for CSIdentityQuery
impl RefEncode for CSIdentityQuery
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
impl Type for CSIdentityQuery
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
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