objc2_home_kit/generated/
HMEventTriggerActivationState.rs1use objc2::__framework_prelude::*;
4
5use crate::*;
6
7#[repr(transparent)]
12#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
13pub struct HMEventTriggerActivationState(pub NSUInteger);
14impl HMEventTriggerActivationState {
15 #[doc(alias = "HMEventTriggerActivationStateDisabled")]
17 pub const Disabled: Self = Self(0);
18 #[doc(alias = "HMEventTriggerActivationStateDisabledNoHomeHub")]
20 pub const DisabledNoHomeHub: Self = Self(1);
21 #[doc(alias = "HMEventTriggerActivationStateDisabledNoCompatibleHomeHub")]
23 pub const DisabledNoCompatibleHomeHub: Self = Self(2);
24 #[doc(alias = "HMEventTriggerActivationStateDisabledNoLocationServicesAuthorization")]
26 pub const DisabledNoLocationServicesAuthorization: Self = Self(3);
27 #[doc(alias = "HMEventTriggerActivationStateEnabled")]
29 pub const Enabled: Self = Self(4);
30}
31
32unsafe impl Encode for HMEventTriggerActivationState {
33 const ENCODING: Encoding = NSUInteger::ENCODING;
34}
35
36unsafe impl RefEncode for HMEventTriggerActivationState {
37 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
38}