objc2_metric_kit/generated/
MXCrashDiagnostic.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(MXDiagnostic, NSObject))]
16 #[derive(Debug, PartialEq, Eq, Hash)]
17 #[cfg(feature = "MXDiagnostic")]
18 pub struct MXCrashDiagnostic;
19);
20
21#[cfg(feature = "MXDiagnostic")]
22extern_conformance!(
23 unsafe impl NSCoding for MXCrashDiagnostic {}
24);
25
26#[cfg(feature = "MXDiagnostic")]
27extern_conformance!(
28 unsafe impl NSObjectProtocol for MXCrashDiagnostic {}
29);
30
31#[cfg(feature = "MXDiagnostic")]
32extern_conformance!(
33 unsafe impl NSSecureCoding for MXCrashDiagnostic {}
34);
35
36#[cfg(feature = "MXDiagnostic")]
37impl MXCrashDiagnostic {
38 extern_methods!(
39 #[cfg(feature = "MXCallStackTree")]
40 #[unsafe(method(callStackTree))]
44 #[unsafe(method_family = none)]
45 pub unsafe fn callStackTree(&self) -> Retained<MXCallStackTree>;
46
47 #[unsafe(method(terminationReason))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn terminationReason(&self) -> Option<Retained<NSString>>;
53
54 #[unsafe(method(virtualMemoryRegionInfo))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn virtualMemoryRegionInfo(&self) -> Option<Retained<NSString>>;
60
61 #[unsafe(method(exceptionType))]
65 #[unsafe(method_family = none)]
66 pub unsafe fn exceptionType(&self) -> Option<Retained<NSNumber>>;
67
68 #[unsafe(method(exceptionCode))]
72 #[unsafe(method_family = none)]
73 pub unsafe fn exceptionCode(&self) -> Option<Retained<NSNumber>>;
74
75 #[unsafe(method(signal))]
79 #[unsafe(method_family = none)]
80 pub unsafe fn signal(&self) -> Option<Retained<NSNumber>>;
81
82 #[cfg(feature = "MXCrashDiagnosticObjectiveCExceptionReason")]
83 #[unsafe(method(exceptionReason))]
88 #[unsafe(method_family = none)]
89 pub unsafe fn exceptionReason(
90 &self,
91 ) -> Option<Retained<MXCrashDiagnosticObjectiveCExceptionReason>>;
92 );
93}
94
95#[cfg(feature = "MXDiagnostic")]
97impl MXCrashDiagnostic {
98 extern_methods!(
99 #[unsafe(method(init))]
100 #[unsafe(method_family = init)]
101 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
102
103 #[unsafe(method(new))]
104 #[unsafe(method_family = new)]
105 pub unsafe fn new() -> Retained<Self>;
106 );
107}