objc2-core-haptics 0.3.2

Bindings to the CoreHaptics framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;

use crate::*;

/// [Apple's documentation](https://developer.apple.com/documentation/corehaptics/chhapticerrorcode?language=objc)
// NS_ERROR_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct CHHapticErrorCode(pub NSInteger);
impl CHHapticErrorCode {
    #[doc(alias = "CHHapticErrorCodeEngineNotRunning")]
    pub const EngineNotRunning: Self = Self(-4805);
    #[doc(alias = "CHHapticErrorCodeOperationNotPermitted")]
    pub const OperationNotPermitted: Self = Self(-4806);
    #[doc(alias = "CHHapticErrorCodeEngineStartTimeout")]
    pub const EngineStartTimeout: Self = Self(-4808);
    #[doc(alias = "CHHapticErrorCodeNotSupported")]
    pub const NotSupported: Self = Self(-4809);
    #[doc(alias = "CHHapticErrorCodeServerInitFailed")]
    pub const ServerInitFailed: Self = Self(-4810);
    #[doc(alias = "CHHapticErrorCodeServerInterrupted")]
    pub const ServerInterrupted: Self = Self(-4811);
    #[doc(alias = "CHHapticErrorCodeInvalidPatternPlayer")]
    pub const InvalidPatternPlayer: Self = Self(-4812);
    #[doc(alias = "CHHapticErrorCodeInvalidPatternData")]
    pub const InvalidPatternData: Self = Self(-4813);
    #[doc(alias = "CHHapticErrorCodeInvalidPatternDictionary")]
    pub const InvalidPatternDictionary: Self = Self(-4814);
    #[doc(alias = "CHHapticErrorCodeInvalidAudioSession")]
    pub const InvalidAudioSession: Self = Self(-4815);
    #[doc(alias = "CHHapticErrorCodeInvalidEngineParameter")]
    pub const InvalidEngineParameter: Self = Self(-4816);
    #[doc(alias = "CHHapticErrorCodeInvalidParameterType")]
    pub const InvalidParameterType: Self = Self(-4820);
    #[doc(alias = "CHHapticErrorCodeInvalidEventType")]
    pub const InvalidEventType: Self = Self(-4821);
    #[doc(alias = "CHHapticErrorCodeInvalidEventTime")]
    pub const InvalidEventTime: Self = Self(-4822);
    #[doc(alias = "CHHapticErrorCodeInvalidEventDuration")]
    pub const InvalidEventDuration: Self = Self(-4823);
    #[doc(alias = "CHHapticErrorCodeInvalidAudioResource")]
    pub const InvalidAudioResource: Self = Self(-4824);
    #[doc(alias = "CHHapticErrorCodeResourceNotAvailable")]
    pub const ResourceNotAvailable: Self = Self(-4825);
    #[doc(alias = "CHHapticErrorCodeBadEventEntry")]
    pub const BadEventEntry: Self = Self(-4830);
    #[doc(alias = "CHHapticErrorCodeBadParameterEntry")]
    pub const BadParameterEntry: Self = Self(-4831);
    #[doc(alias = "CHHapticErrorCodeInvalidTime")]
    pub const InvalidTime: Self = Self(-4840);
    #[doc(alias = "CHHapticErrorCodeFileNotFound")]
    pub const FileNotFound: Self = Self(-4851);
    #[doc(alias = "CHHapticErrorCodeInsufficientPower")]
    pub const InsufficientPower: Self = Self(-4897);
    #[doc(alias = "CHHapticErrorCodeUnknownError")]
    pub const UnknownError: Self = Self(-4898);
    #[doc(alias = "CHHapticErrorCodeMemoryError")]
    pub const MemoryError: Self = Self(-4899);
}

unsafe impl Encode for CHHapticErrorCode {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for CHHapticErrorCode {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}