objc2_metric_kit/generated/
MXDiskWriteExceptionDiagnostic.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 MXDiskWriteExceptionDiagnostic;
19);
20
21#[cfg(feature = "MXDiagnostic")]
22unsafe impl NSCoding for MXDiskWriteExceptionDiagnostic {}
23
24#[cfg(feature = "MXDiagnostic")]
25unsafe impl NSObjectProtocol for MXDiskWriteExceptionDiagnostic {}
26
27#[cfg(feature = "MXDiagnostic")]
28unsafe impl NSSecureCoding for MXDiskWriteExceptionDiagnostic {}
29
30#[cfg(feature = "MXDiagnostic")]
31impl MXDiskWriteExceptionDiagnostic {
32 extern_methods!(
33 #[cfg(feature = "MXCallStackTree")]
34 #[unsafe(method(callStackTree))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn callStackTree(&self) -> Retained<MXCallStackTree>;
38
39 #[unsafe(method(totalWritesCaused))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn totalWritesCaused(&self)
45 -> Retained<NSMeasurement<NSUnitInformationStorage>>;
46 );
47}
48
49#[cfg(feature = "MXDiagnostic")]
51impl MXDiskWriteExceptionDiagnostic {
52 extern_methods!(
53 #[unsafe(method(init))]
54 #[unsafe(method_family = init)]
55 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
56
57 #[unsafe(method(new))]
58 #[unsafe(method_family = new)]
59 pub unsafe fn new() -> Retained<Self>;
60 );
61}