objc2_thread_network/generated/
THCredentials.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
18 #[derive(Debug, PartialEq, Eq, Hash)]
19 pub struct THCredentials;
20);
21
22extern_conformance!(
23 unsafe impl NSCoding for THCredentials {}
24);
25
26extern_conformance!(
27 unsafe impl NSObjectProtocol for THCredentials {}
28);
29
30extern_conformance!(
31 unsafe impl NSSecureCoding for THCredentials {}
32);
33
34impl THCredentials {
35 extern_methods!(
36 #[unsafe(method(networkName))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn networkName(&self) -> Option<Retained<NSString>>;
40
41 #[unsafe(method(extendedPANID))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn extendedPANID(&self) -> Option<Retained<NSData>>;
45
46 #[unsafe(method(borderAgentID))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn borderAgentID(&self) -> Option<Retained<NSData>>;
53
54 #[unsafe(method(activeOperationalDataSet))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn activeOperationalDataSet(&self) -> Option<Retained<NSData>>;
64
65 #[unsafe(method(networkKey))]
67 #[unsafe(method_family = none)]
68 pub unsafe fn networkKey(&self) -> Option<Retained<NSData>>;
69
70 #[unsafe(method(PSKC))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn PSKC(&self) -> Option<Retained<NSData>>;
74
75 #[unsafe(method(channel))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn channel(&self) -> u8;
79
80 #[unsafe(method(setChannel:))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn setChannel(&self, channel: u8);
84
85 #[unsafe(method(panID))]
87 #[unsafe(method_family = none)]
88 pub unsafe fn panID(&self) -> Option<Retained<NSData>>;
89
90 #[unsafe(method(creationDate))]
92 #[unsafe(method_family = none)]
93 pub unsafe fn creationDate(&self) -> Option<Retained<NSDate>>;
94
95 #[unsafe(method(lastModificationDate))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn lastModificationDate(&self) -> Option<Retained<NSDate>>;
99
100 #[unsafe(method(init))]
101 #[unsafe(method_family = init)]
102 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
103
104 #[unsafe(method(new))]
105 #[unsafe(method_family = new)]
106 pub unsafe fn new() -> Retained<Self>;
107 );
108}