Struct core_foundation::error::CFError [−][src]
pub struct CFError(_);
An error value.
Methods
impl CFError
[src]
impl CFError
pub fn domain(&self) -> CFString
[src]
pub fn domain(&self) -> CFString
Returns a string identifying the domain with which this error is associated.
pub fn code(&self) -> CFIndex
[src]
pub fn code(&self) -> CFIndex
Returns the code identifying this type of error.
pub fn description(&self) -> CFString
[src]
pub fn description(&self) -> CFString
Returns a human-presentable description of the error.
Trait Implementations
impl Drop for CFError
[src]
impl Drop for CFError
impl TCFType for CFError
[src]
impl TCFType for CFError
type Ref = CFErrorRef
The reference type wrapped inside this type.
fn as_concrete_TypeRef(&self) -> CFErrorRef
[src]
fn as_concrete_TypeRef(&self) -> CFErrorRef
Returns the object as its concrete TypeRef.
unsafe fn wrap_under_get_rule(reference: CFErrorRef) -> Self
[src]
unsafe fn wrap_under_get_rule(reference: CFErrorRef) -> Self
Returns an instance of the object, wrapping the underlying CFTypeRef
subclass. Use this when following Core Foundation's "Get Rule". The reference count is bumped. Read more
fn as_CFTypeRef(&self) -> CFTypeRef
[src]
fn as_CFTypeRef(&self) -> CFTypeRef
Returns the object as a raw CFTypeRef
. The reference count is not adjusted.
unsafe fn wrap_under_create_rule(reference: CFErrorRef) -> Self
[src]
unsafe fn wrap_under_create_rule(reference: CFErrorRef) -> Self
Returns an instance of the object, wrapping the underlying CFTypeRef
subclass. Use this when following Core Foundation's "Create Rule". The reference count is not bumped. Read more
fn type_id() -> CFTypeID
[src]
fn type_id() -> CFTypeID
Returns the type ID for this class.
fn as_CFType(&self) -> CFType
[src]
fn as_CFType(&self) -> CFType
Returns the object as a wrapped CFType
. The reference count is incremented by one.
fn into_CFType(self) -> CFType where
Self: Sized,
[src]
fn into_CFType(self) -> CFType where
Self: Sized,
Returns the object as a wrapped CFType
. Consumes self and avoids changing the reference count. Read more
fn retain_count(&self) -> CFIndex
[src]
fn retain_count(&self) -> CFIndex
Returns the reference count of the object. It is unwise to do anything other than test whether the return value of this method is greater than zero. Read more
fn type_of(&self) -> CFTypeID
[src]
fn type_of(&self) -> CFTypeID
Returns the type ID of this object.
fn show(&self)
[src]
fn show(&self)
Writes a debugging version of this object on standard error.
fn instance_of<OtherCFType: TCFType>(&self) -> bool
[src]
fn instance_of<OtherCFType: TCFType>(&self) -> bool
Returns true if this value is an instance of another type.
impl Clone for CFError
[src]
impl Clone for CFError
fn clone(&self) -> CFError
[src]
fn clone(&self) -> CFError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for CFError
[src]
impl PartialEq for CFError
fn eq(&self, other: &CFError) -> bool
[src]
fn eq(&self, other: &CFError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for CFError
[src]
impl Eq for CFError
impl<'a> ToVoid<CFError> for &'a CFError
[src]
impl<'a> ToVoid<CFError> for &'a CFError
impl ToVoid<CFError> for CFError
[src]
impl ToVoid<CFError> for CFError
impl ToVoid<CFError> for CFErrorRef
[src]
impl ToVoid<CFError> for CFErrorRef
impl ConcreteCFType for CFError
[src]
impl ConcreteCFType for CFError
impl Debug for CFError
[src]
impl Debug for CFError
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for CFError
[src]
impl Display for CFError
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for CFError
[src]
impl Error for CFError