Struct fruity::foundation::NSException
source · [−]#[repr(C)]pub struct NSException(_);
Expand description
A special condition that interrupts the normal flow of program execution.
See documentation.
Implementations
sourceimpl NSException
impl NSException
Creating and rasing exceptions.
sourcepub fn raise(&self) -> !
pub fn raise(&self) -> !
Raises the receiver, causing program flow to jump to the local exception handler.
When there are no exception handlers in the exception handler stack, unless the exception is raised during the posting of a notification, this method calls the uncaught exception handler, in which last-minute logging can be performed. The program then terminates, regardless of the actions taken by the uncaught exception handler.
See documentation.
sourceimpl NSException
impl NSException
Querying an NSException
object.
sourcepub fn name(&self) -> Arc<NSExceptionName>
pub fn name(&self) -> Arc<NSExceptionName>
Returns a string used to uniquely identify self
.
See documentation.
Methods from Deref<Target = NSObject<'static>>
sourcepub fn retain_count(&self) -> usize
pub fn retain_count(&self) -> usize
Returns this object’s reference count.
This method is only useful for debugging certain objects.
See documentation.
sourcepub fn responds_to_selector(&self, selector: Sel) -> bool
pub fn responds_to_selector(&self, selector: Sel) -> bool
Returns true
if this object implements or inherits a method that can
respond to a specified message.
See documentation.
sourcepub fn is_kind_of_class(&self, class: &Class) -> bool
pub fn is_kind_of_class(&self, class: &Class) -> bool
Returns true
if this object is an instance or subclass of class
.
See documentation
sourcepub fn is_member_of_class(&self, class: &Class) -> bool
pub fn is_member_of_class(&self, class: &Class) -> bool
Returns true
if this object is an instance of class
.
See documentation
sourcepub fn hash(&self) -> NSUInteger
pub fn hash(&self) -> NSUInteger
Returns an integer that can be used as a table address in a hash table structure.
See documentation.
sourcepub fn copy(&self) -> Arc<Self>
pub fn copy(&self) -> Arc<Self>
Returns a copy of this object using
NSCopying
.
See documentation.
sourcepub fn mutable_copy(&self) -> Arc<Self>
pub fn mutable_copy(&self) -> Arc<Self>
Returns a copy of this object using
NSMutableCopying
.
See documentation.
sourcepub fn description(&self) -> Arc<NSString<'static>>
pub fn description(&self) -> Arc<NSString<'static>>
Returns a string that describes the contents of this object.
See documentation
sourcepub fn debug_description(&self) -> Arc<NSString<'static>>
pub fn debug_description(&self) -> Arc<NSString<'static>>
Returns a string that describes the contents of the receiver for presentation in the debugger.
See documentation
Trait Implementations
sourceimpl AsMut<NSException> for NSException
impl AsMut<NSException> for NSException
sourceimpl<T> AsMut<T> for NSException where
NSObject<'static>: AsMut<T>,
impl<T> AsMut<T> for NSException where
NSObject<'static>: AsMut<T>,
sourceimpl AsRef<NSException> for NSException
impl AsRef<NSException> for NSException
sourceimpl<T> AsRef<T> for NSException where
NSObject<'static>: AsRef<T>,
impl<T> AsRef<T> for NSException where
NSObject<'static>: AsRef<T>,
sourceimpl ClassType<'static> for NSException
impl ClassType<'static> for NSException
sourceimpl Deref for NSException
impl Deref for NSException
sourceimpl ObjectType for NSException
impl ObjectType for NSException
sourceimpl ObjectType<'static> for NSException
impl ObjectType<'static> for NSException
sourcefn as_objc_object(&self) -> &ObjCObject<'data>
fn as_objc_object(&self) -> &ObjCObject<'data>
Casts self
into a type-erased Objective-C object.
Auto Trait Implementations
impl RefUnwindSafe for NSException
impl Send for NSException
impl Sync for NSException
impl Unpin for NSException
impl UnwindSafe for NSException
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more