objc2_core_bluetooth/generated/
CBPeer.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::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/corebluetooth/cbpeer?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct CBPeer;
14);
15
16extern_conformance!(
17    unsafe impl NSCopying for CBPeer {}
18);
19
20unsafe impl CopyingHelper for CBPeer {
21    type Result = Self;
22}
23
24extern_conformance!(
25    unsafe impl NSObjectProtocol for CBPeer {}
26);
27
28impl CBPeer {
29    extern_methods!(
30        #[unsafe(method(init))]
31        #[unsafe(method_family = init)]
32        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
33
34        /// The unique, persistent identifier associated with the peer.
35        #[unsafe(method(identifier))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn identifier(&self) -> Retained<NSUUID>;
38    );
39}
40
41/// Methods declared on superclass `NSObject`.
42impl CBPeer {
43    extern_methods!(
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new() -> Retained<Self>;
47    );
48}