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
15extern_conformance!(
16    unsafe impl NSObjectProtocol for CBAttribute {}
17);
18
19impl CBAttribute {
20    extern_methods!(
21        #[unsafe(method(init))]
22        #[unsafe(method_family = init)]
23        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
24
25        #[cfg(feature = "CBUUID")]
26        /// The Bluetooth UUID of the attribute.
27        #[unsafe(method(UUID))]
28        #[unsafe(method_family = none)]
29        pub unsafe fn UUID(&self) -> Retained<CBUUID>;
30    );
31}
32
33/// Methods declared on superclass `NSObject`.
34impl CBAttribute {
35    extern_methods!(
36        #[unsafe(method(new))]
37        #[unsafe(method_family = new)]
38        pub unsafe fn new() -> Retained<Self>;
39    );
40}