objc2_core_bluetooth/generated/
CBAttribute.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_class!(
9 #[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 #[unsafe(method(UUID))]
28 #[unsafe(method_family = none)]
29 pub unsafe fn UUID(&self) -> Retained<CBUUID>;
30 );
31}
32
33impl CBAttribute {
35 extern_methods!(
36 #[unsafe(method(new))]
37 #[unsafe(method_family = new)]
38 pub unsafe fn new() -> Retained<Self>;
39 );
40}