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")]
25unsafe impl NSObjectProtocol for HMTimeEvent {}
26
27#[cfg(feature = "HMEvent")]
28impl HMTimeEvent {
29    extern_methods!();
30}
31
32/// Methods declared on superclass `HMEvent`.
33#[cfg(feature = "HMEvent")]
34impl HMTimeEvent {
35    extern_methods!(
36        #[deprecated = "HMEvent is abstract"]
37        #[unsafe(method(init))]
38        #[unsafe(method_family = init)]
39        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
40
41        #[deprecated = "HMEvent is abstract"]
42        #[unsafe(method(new))]
43        #[unsafe(method_family = new)]
44        pub unsafe fn new() -> Retained<Self>;
45    );
46}