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
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        /// The unique, persistent identifier associated with the peer.
31        #[unsafe(method(identifier))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn identifier(&self) -> Retained<NSUUID>;
34    );
35}
36
37/// Methods declared on superclass `NSObject`.
38impl CBPeer {
39    extern_methods!(
40        #[unsafe(method(new))]
41        #[unsafe(method_family = new)]
42        pub unsafe fn new() -> Retained<Self>;
43    );
44}