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
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 #[unsafe(method(UUID))]
26 #[unsafe(method_family = none)]
27 pub unsafe fn UUID(&self) -> Retained<CBUUID>;
28 );
29}
30
31impl CBAttribute {
33 extern_methods!(
34 #[unsafe(method(new))]
35 #[unsafe(method_family = new)]
36 pub unsafe fn new() -> Retained<Self>;
37 );
38}