objc2_core_bluetooth/generated/
CBPeer.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct CBPeer;
14);
15
16unsafe impl NSCopying for CBPeer {}
17
18unsafe impl CopyingHelper for CBPeer {
19 type Result = Self;
20}
21
22unsafe impl NSObjectProtocol for CBPeer {}
23
24impl CBPeer {
25 extern_methods!(
26 #[unsafe(method(init))]
27 #[unsafe(method_family = init)]
28 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
29
30 #[unsafe(method(identifier))]
32 #[unsafe(method_family = none)]
33 pub unsafe fn identifier(&self) -> Retained<NSUUID>;
34 );
35}
36
37impl CBPeer {
39 extern_methods!(
40 #[unsafe(method(new))]
41 #[unsafe(method_family = new)]
42 pub unsafe fn new() -> Retained<Self>;
43 );
44}