Struct core_foundation::error::CFError [−][src]
pub struct CFError(_);
An error value.
Methods
impl CFError[src]
impl CFErrorpub fn domain(&self) -> CFString[src]
pub fn domain(&self) -> CFStringReturns a string identifying the domain with which this error is associated.
pub fn code(&self) -> CFIndex[src]
pub fn code(&self) -> CFIndexReturns the code identifying this type of error.
pub fn description(&self) -> CFString[src]
pub fn description(&self) -> CFStringReturns a human-presentable description of the error.
Trait Implementations
impl Drop for CFError[src]
impl Drop for CFErrorimpl TCFType for CFError[src]
impl TCFType for CFErrortype Ref = CFErrorRef
The reference type wrapped inside this type.
fn as_concrete_TypeRef(&self) -> CFErrorRef[src]
fn as_concrete_TypeRef(&self) -> CFErrorRefReturns the object as its concrete TypeRef.
unsafe fn wrap_under_get_rule(reference: CFErrorRef) -> Self[src]
unsafe fn wrap_under_get_rule(reference: CFErrorRef) -> SelfReturns 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) -> CFTypeRefReturns 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) -> SelfReturns 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() -> CFTypeIDReturns the type ID for this class.
fn as_CFType(&self) -> CFType[src]
fn as_CFType(&self) -> CFTypeReturns 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) -> CFIndexReturns 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) -> CFTypeIDReturns 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) -> boolReturns true if this value is an instance of another type.
impl Clone for CFError[src]
impl Clone for CFErrorfn clone(&self) -> CFError[src]
fn clone(&self) -> CFErrorReturns 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 CFErrorfn eq(&self, other: &CFError) -> bool[src]
fn eq(&self, other: &CFError) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Eq for CFError[src]
impl Eq for CFErrorimpl<'a> ToVoid<CFError> for &'a CFError[src]
impl<'a> ToVoid<CFError> for &'a CFErrorimpl ToVoid<CFError> for CFError[src]
impl ToVoid<CFError> for CFErrorimpl ToVoid<CFError> for CFErrorRef[src]
impl ToVoid<CFError> for CFErrorRefimpl ConcreteCFType for CFError[src]
impl ConcreteCFType for CFErrorimpl Debug for CFError[src]
impl Debug for CFErrorfn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Display for CFError[src]
impl Display for CFErrorfn fmt(&self, fmt: &mut Formatter) -> Result[src]
fn fmt(&self, fmt: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for CFError[src]
impl Error for CFError