objc2_metric_kit/generated/
MXDiskWriteExceptionDiagnostic.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    /// An MXDiagnostic subclass that encapsulates disk write exception reports.
11    ///
12    /// Disk write exceptions occur when your application writes data excessively to disk.
13    ///
14    /// See also [Apple's documentation](https://developer.apple.com/documentation/metrickit/mxdiskwriteexceptiondiagnostic?language=objc)
15    #[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        /// The application call stack tree associated with the excessive disk writes.
35        #[unsafe(method(callStackTree))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn callStackTree(&self) -> Retained<MXCallStackTree>;
38
39        /// Total disk writes caused in the scope of this disk write exception.
40        ///
41        /// Dimensioned as NSUnitInformationStorage.
42        #[unsafe(method(totalWritesCaused))]
43        #[unsafe(method_family = none)]
44        pub unsafe fn totalWritesCaused(&self)
45            -> Retained<NSMeasurement<NSUnitInformationStorage>>;
46    );
47}
48
49/// Methods declared on superclass `NSObject`.
50#[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}