Skip to main content

NSObjectNSThreadPerformAdditions

Trait NSObjectNSThreadPerformAdditions 

Source
pub unsafe trait NSObjectNSThreadPerformAdditions:
    ClassType
    + Sized
    + Sealed {
    // Provided methods
    unsafe fn performSelectorOnMainThread_withObject_waitUntilDone_modes(
        &self,
        a_selector: Sel,
        arg: Option<&AnyObject>,
        wait: bool,
        array: Option<&NSArray<NSString>>,
    ) { ... }
    unsafe fn performSelectorOnMainThread_withObject_waitUntilDone(
        &self,
        a_selector: Sel,
        arg: Option<&AnyObject>,
        wait: bool,
    ) { ... }
    unsafe fn performSelector_onThread_withObject_waitUntilDone_modes(
        &self,
        a_selector: Sel,
        thr: &NSThread,
        arg: Option<&AnyObject>,
        wait: bool,
        array: Option<&NSArray<NSString>>,
    ) { ... }
    unsafe fn performSelector_onThread_withObject_waitUntilDone(
        &self,
        a_selector: Sel,
        thr: &NSThread,
        arg: Option<&AnyObject>,
        wait: bool,
    ) { ... }
    unsafe fn performSelectorInBackground_withObject(
        &self,
        a_selector: Sel,
        arg: Option<&AnyObject>,
    ) { ... }
}
Available on crate feature NSThread only.
Expand description

Category “NSThreadPerformAdditions” on NSObject.

Provided Methods§

Source

unsafe fn performSelectorOnMainThread_withObject_waitUntilDone_modes( &self, a_selector: Sel, arg: Option<&AnyObject>, wait: bool, array: Option<&NSArray<NSString>>, )

Available on crate features NSArray and NSString only.
§Safety
  • a_selector must be a valid selector.
  • arg should be of the correct type.
Source

unsafe fn performSelectorOnMainThread_withObject_waitUntilDone( &self, a_selector: Sel, arg: Option<&AnyObject>, wait: bool, )

§Safety
  • a_selector must be a valid selector.
  • arg should be of the correct type.
Source

unsafe fn performSelector_onThread_withObject_waitUntilDone_modes( &self, a_selector: Sel, thr: &NSThread, arg: Option<&AnyObject>, wait: bool, array: Option<&NSArray<NSString>>, )

Available on crate features NSArray and NSString only.
§Safety
  • a_selector must be a valid selector.
  • arg should be of the correct type.
Source

unsafe fn performSelector_onThread_withObject_waitUntilDone( &self, a_selector: Sel, thr: &NSThread, arg: Option<&AnyObject>, wait: bool, )

§Safety
  • a_selector must be a valid selector.
  • arg should be of the correct type.
Source

unsafe fn performSelectorInBackground_withObject( &self, a_selector: Sel, arg: Option<&AnyObject>, )

§Safety
  • a_selector must be a valid selector.
  • arg should be of the correct type.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§