objc2_home_kit/generated/
HMTimeEvent.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9    /// This class is used to represent a generic time event.
10    ///
11    /// See also [Apple's documentation](https://developer.apple.com/documentation/homekit/hmtimeevent?language=objc)
12    #[unsafe(super(HMEvent, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(feature = "HMEvent")]
15    pub struct HMTimeEvent;
16);
17
18#[cfg(feature = "HMEvent")]
19unsafe impl Send for HMTimeEvent {}
20
21#[cfg(feature = "HMEvent")]
22unsafe impl Sync for HMTimeEvent {}
23
24#[cfg(feature = "HMEvent")]
25extern_conformance!(
26    unsafe impl NSObjectProtocol for HMTimeEvent {}
27);
28
29#[cfg(feature = "HMEvent")]
30impl HMTimeEvent {
31    extern_methods!();
32}
33
34/// Methods declared on superclass `HMEvent`.
35#[cfg(feature = "HMEvent")]
36impl HMTimeEvent {
37    extern_methods!(
38        #[deprecated = "HMEvent is abstract"]
39        #[unsafe(method(init))]
40        #[unsafe(method_family = init)]
41        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
42
43        #[deprecated = "HMEvent is abstract"]
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new() -> Retained<Self>;
47    );
48}