objc2_core_bluetooth/generated/
CBAttribute.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    /// [Apple's documentation](https://developer.apple.com/documentation/corebluetooth/cbattribute?language=objc)
10    #[unsafe(super(NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    pub struct CBAttribute;
13);
14
15unsafe impl NSObjectProtocol for CBAttribute {}
16
17impl CBAttribute {
18    extern_methods!(
19        #[unsafe(method(init))]
20        #[unsafe(method_family = init)]
21        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
22
23        #[cfg(feature = "CBUUID")]
24        /// The Bluetooth UUID of the attribute.
25        #[unsafe(method(UUID))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn UUID(&self) -> Retained<CBUUID>;
28    );
29}
30
31/// Methods declared on superclass `NSObject`.
32impl CBAttribute {
33    extern_methods!(
34        #[unsafe(method(new))]
35        #[unsafe(method_family = new)]
36        pub unsafe fn new() -> Retained<Self>;
37    );
38}