#[repr(transparent)]pub struct CHHapticEngineStoppedReason(pub NSInteger);Available on crate feature
CHHapticEngine only.Expand description
Constants indicating the reason why the CHHapticEngine has stopped.
The AVAudioSession bound to this engine has been interrupted.
The application owning this engine has been suspended (i.e., put into the background).
The engine has stopped due to an idle timeout when the engine’s autoShutdownEnabled property was set to YES.
The engine has stopped due to a call to a CHHapticEngineFinishedHandler returning CHHapticEngineFinishedActionStopEngine.
The engine has stopped because the CHHapticEngine instance was destroyed.
The engine has stopped because the Game Controller associated with this engine disconnected.
An error has occurred.
See also Apple’s documentation
Tuple Fields§
§0: NSIntegerImplementations§
Source§impl CHHapticEngineStoppedReason
impl CHHapticEngineStoppedReason
pub const AudioSessionInterrupt: Self
pub const ApplicationSuspended: Self
pub const IdleTimeout: Self
pub const NotifyWhenFinished: Self
pub const EngineDestroyed: Self
pub const GameControllerDisconnect: Self
pub const SystemError: Self
Trait Implementations§
Source§impl Clone for CHHapticEngineStoppedReason
impl Clone for CHHapticEngineStoppedReason
Source§fn clone(&self) -> CHHapticEngineStoppedReason
fn clone(&self) -> CHHapticEngineStoppedReason
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CHHapticEngineStoppedReason
impl Debug for CHHapticEngineStoppedReason
Source§impl Encode for CHHapticEngineStoppedReason
impl Encode for CHHapticEngineStoppedReason
Source§impl Hash for CHHapticEngineStoppedReason
impl Hash for CHHapticEngineStoppedReason
Source§impl Ord for CHHapticEngineStoppedReason
impl Ord for CHHapticEngineStoppedReason
Source§fn cmp(&self, other: &CHHapticEngineStoppedReason) -> Ordering
fn cmp(&self, other: &CHHapticEngineStoppedReason) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for CHHapticEngineStoppedReason
impl PartialOrd for CHHapticEngineStoppedReason
Source§impl RefEncode for CHHapticEngineStoppedReason
impl RefEncode for CHHapticEngineStoppedReason
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for CHHapticEngineStoppedReason
impl Eq for CHHapticEngineStoppedReason
impl StructuralPartialEq for CHHapticEngineStoppedReason
Auto Trait Implementations§
impl Freeze for CHHapticEngineStoppedReason
impl RefUnwindSafe for CHHapticEngineStoppedReason
impl Send for CHHapticEngineStoppedReason
impl Sync for CHHapticEngineStoppedReason
impl Unpin for CHHapticEngineStoppedReason
impl UnwindSafe for CHHapticEngineStoppedReason
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.