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§
Sourceunsafe 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.
unsafe fn performSelectorOnMainThread_withObject_waitUntilDone_modes( &self, a_selector: Sel, arg: Option<&AnyObject>, wait: bool, array: Option<&NSArray<NSString>>, )
NSArray and NSString only.§Safety
a_selectormust be a valid selector.argshould be of the correct type.
Sourceunsafe fn performSelectorOnMainThread_withObject_waitUntilDone(
&self,
a_selector: Sel,
arg: Option<&AnyObject>,
wait: bool,
)
unsafe fn performSelectorOnMainThread_withObject_waitUntilDone( &self, a_selector: Sel, arg: Option<&AnyObject>, wait: bool, )
§Safety
a_selectormust be a valid selector.argshould be of the correct type.
Sourceunsafe 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.
unsafe fn performSelector_onThread_withObject_waitUntilDone_modes( &self, a_selector: Sel, thr: &NSThread, arg: Option<&AnyObject>, wait: bool, array: Option<&NSArray<NSString>>, )
NSArray and NSString only.§Safety
a_selectormust be a valid selector.argshould be of the correct type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.