pub struct DADissenter { /* private fields */ }DADissenter only.Expand description
Type of a reference to DADissenter instances.
See also Apple’s documentation
Implementations§
Source§impl DADissenter
impl DADissenter
Sourcepub unsafe fn new(
allocator: Option<&CFAllocator>,
status: DAReturn,
string: Option<&CFString>,
) -> CFRetained<DADissenter>
Available on crate feature libc only.
pub unsafe fn new( allocator: Option<&CFAllocator>, status: DAReturn, string: Option<&CFString>, ) -> CFRetained<DADissenter>
libc only.Creates a new dissenter object.
Parameter allocator: The allocator object to be used to allocate memory.
Parameter status: The return code.
Parameter string: The return code string. Pass NULL for no reason.
Returns: A reference to a new DADissenter.
Sourcepub unsafe fn status(&self) -> DAReturn
Available on crate feature libc only.
pub unsafe fn status(&self) -> DAReturn
libc only.Obtains the return code.
Parameter dissenter: The DADissenter for which to obtain the return code.
Returns: The return code. A BSD return code, if applicable, is encoded with unix_err().
Sourcepub unsafe fn status_string(&self) -> Option<CFRetained<CFString>>
pub unsafe fn status_string(&self) -> Option<CFRetained<CFString>>
Obtains the return code string.
Parameter dissenter: The DADissenter for which to obtain the return code string.
Returns: The return code string.
Methods from Deref<Target = CFType>§
Sourcepub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
pub fn downcast_ref<T>(&self) -> Option<&T>where
T: ConcreteType,
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
pub fn retain_count(&self) -> usize
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 DADissenter
impl AsRef<AnyObject> for DADissenter
Source§impl AsRef<CFType> for DADissenter
impl AsRef<CFType> for DADissenter
Source§impl AsRef<DADissenter> for DADissenter
impl AsRef<DADissenter> for DADissenter
Source§impl Borrow<AnyObject> for DADissenter
impl Borrow<AnyObject> for DADissenter
Source§impl Borrow<CFType> for DADissenter
impl Borrow<CFType> for DADissenter
Source§impl Debug for DADissenter
impl Debug for DADissenter
Source§impl Deref for DADissenter
impl Deref for DADissenter
Source§impl Hash for DADissenter
impl Hash for DADissenter
Source§impl Message for DADissenter
impl Message for DADissenter
Source§impl PartialEq for DADissenter
impl PartialEq for DADissenter
Source§impl RefEncode for DADissenter
impl RefEncode for DADissenter
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
Source§impl Type for DADissenter
impl Type for DADissenter
Source§fn retain(&self) -> CFRetained<Self>where
Self: Sized,
fn retain(&self) -> CFRetained<Self>where
Self: Sized,
Source§fn as_concrete_TypeRef(&self) -> &Self
fn as_concrete_TypeRef(&self) -> &Self
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,
core-foundation crate. Read moreSource§fn as_CFTypeRef(&self) -> &CFType
fn as_CFTypeRef(&self) -> &CFType
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,
core-foundation crate. Read more