use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MXDiagnostic")]
pub struct MXDiskWriteExceptionDiagnostic;
#[cfg(feature = "MXDiagnostic")]
unsafe impl ClassType for MXDiskWriteExceptionDiagnostic {
#[inherits(NSObject)]
type Super = MXDiagnostic;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "MXDiagnostic")]
unsafe impl NSCoding for MXDiskWriteExceptionDiagnostic {}
#[cfg(feature = "MXDiagnostic")]
unsafe impl NSObjectProtocol for MXDiskWriteExceptionDiagnostic {}
#[cfg(feature = "MXDiagnostic")]
unsafe impl NSSecureCoding for MXDiskWriteExceptionDiagnostic {}
extern_methods!(
#[cfg(feature = "MXDiagnostic")]
unsafe impl MXDiskWriteExceptionDiagnostic {
#[cfg(feature = "MXCallStackTree")]
#[method_id(@__retain_semantics Other callStackTree)]
pub unsafe fn callStackTree(&self) -> Id<MXCallStackTree>;
#[method_id(@__retain_semantics Other totalWritesCaused)]
pub unsafe fn totalWritesCaused(&self) -> Id<NSMeasurement<NSUnitInformationStorage>>;
}
);
extern_methods!(
#[cfg(feature = "MXDiagnostic")]
unsafe impl MXDiskWriteExceptionDiagnostic {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);