pub unsafe trait NSObjectNSDelayedPerforming:
ClassType
+ Sized
+ Sealed {
// Provided methods
unsafe fn performSelector_withObject_afterDelay_inModes(
&self,
a_selector: Sel,
an_argument: Option<&AnyObject>,
delay: NSTimeInterval,
modes: &NSArray<NSRunLoopMode>,
) { ... }
unsafe fn performSelector_withObject_afterDelay(
&self,
a_selector: Sel,
an_argument: Option<&AnyObject>,
delay: NSTimeInterval,
) { ... }
unsafe fn cancelPreviousPerformRequestsWithTarget_selector_object(
a_target: &AnyObject,
a_selector: Sel,
an_argument: Option<&AnyObject>,
) { ... }
unsafe fn cancelPreviousPerformRequestsWithTarget(a_target: &AnyObject) { ... }
}Available on crate feature
NSRunLoop only.Expand description
Category “NSDelayedPerforming” on NSObject.
************** Delayed perform *****************
Provided Methods§
Sourceunsafe fn performSelector_withObject_afterDelay_inModes(
&self,
a_selector: Sel,
an_argument: Option<&AnyObject>,
delay: NSTimeInterval,
modes: &NSArray<NSRunLoopMode>,
)
Available on crate features NSArray and NSDate and NSObjCRuntime and NSString only.
unsafe fn performSelector_withObject_afterDelay_inModes( &self, a_selector: Sel, an_argument: Option<&AnyObject>, delay: NSTimeInterval, modes: &NSArray<NSRunLoopMode>, )
NSArray and NSDate and NSObjCRuntime and NSString only.§Safety
a_selectormust be a valid selector.an_argumentshould be of the correct type.
Sourceunsafe fn performSelector_withObject_afterDelay(
&self,
a_selector: Sel,
an_argument: Option<&AnyObject>,
delay: NSTimeInterval,
)
Available on crate feature NSDate only.
unsafe fn performSelector_withObject_afterDelay( &self, a_selector: Sel, an_argument: Option<&AnyObject>, delay: NSTimeInterval, )
NSDate only.§Safety
a_selectormust be a valid selector.an_argumentshould be of the correct type.
Sourceunsafe fn cancelPreviousPerformRequestsWithTarget_selector_object(
a_target: &AnyObject,
a_selector: Sel,
an_argument: Option<&AnyObject>,
)
unsafe fn cancelPreviousPerformRequestsWithTarget_selector_object( a_target: &AnyObject, a_selector: Sel, an_argument: Option<&AnyObject>, )
§Safety
a_targetshould be of the correct type.a_selectormust be a valid selector.an_argumentshould be of the correct type.
Sourceunsafe fn cancelPreviousPerformRequestsWithTarget(a_target: &AnyObject)
unsafe fn cancelPreviousPerformRequestsWithTarget(a_target: &AnyObject)
§Safety
a_target 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", so this trait is not object safe.