objc2_home_kit/generated/
HMAccessControl.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    /// The HMAccessControl class represents a generic access control.
10    ///
11    /// See also [Apple's documentation](https://developer.apple.com/documentation/homekit/hmaccesscontrol?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct HMAccessControl;
15);
16
17unsafe impl Send for HMAccessControl {}
18
19unsafe impl Sync for HMAccessControl {}
20
21unsafe impl NSObjectProtocol for HMAccessControl {}
22
23impl HMAccessControl {
24    extern_methods!(
25        #[unsafe(method(init))]
26        #[unsafe(method_family = init)]
27        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
28    );
29}
30
31/// Methods declared on superclass `NSObject`.
32impl HMAccessControl {
33    extern_methods!(
34        #[unsafe(method(new))]
35        #[unsafe(method_family = new)]
36        pub unsafe fn new() -> Retained<Self>;
37    );
38}