objc2_virtualization/generated/
VZMacPlatformConfiguration.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(VZPlatformConfiguration, NSObject))]
32 #[derive(Debug, PartialEq, Eq, Hash)]
33 #[cfg(feature = "VZPlatformConfiguration")]
34 pub struct VZMacPlatformConfiguration;
35);
36
37#[cfg(feature = "VZPlatformConfiguration")]
38extern_conformance!(
39 unsafe impl NSCopying for VZMacPlatformConfiguration {}
40);
41
42#[cfg(feature = "VZPlatformConfiguration")]
43unsafe impl CopyingHelper for VZMacPlatformConfiguration {
44 type Result = Self;
45}
46
47#[cfg(feature = "VZPlatformConfiguration")]
48extern_conformance!(
49 unsafe impl NSObjectProtocol for VZMacPlatformConfiguration {}
50);
51
52#[cfg(feature = "VZPlatformConfiguration")]
53impl VZMacPlatformConfiguration {
54 extern_methods!(
55 #[unsafe(method(init))]
56 #[unsafe(method_family = init)]
57 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
58
59 #[cfg(feature = "VZMacHardwareModel")]
60 #[unsafe(method(hardwareModel))]
62 #[unsafe(method_family = none)]
63 pub unsafe fn hardwareModel(&self) -> Retained<VZMacHardwareModel>;
64
65 #[cfg(feature = "VZMacHardwareModel")]
66 #[unsafe(method(setHardwareModel:))]
68 #[unsafe(method_family = none)]
69 pub unsafe fn setHardwareModel(&self, hardware_model: &VZMacHardwareModel);
70
71 #[cfg(feature = "VZMacMachineIdentifier")]
72 #[unsafe(method(machineIdentifier))]
76 #[unsafe(method_family = none)]
77 pub unsafe fn machineIdentifier(&self) -> Retained<VZMacMachineIdentifier>;
78
79 #[cfg(feature = "VZMacMachineIdentifier")]
80 #[unsafe(method(setMachineIdentifier:))]
82 #[unsafe(method_family = none)]
83 pub unsafe fn setMachineIdentifier(&self, machine_identifier: &VZMacMachineIdentifier);
84
85 #[cfg(feature = "VZMacAuxiliaryStorage")]
86 #[unsafe(method(auxiliaryStorage))]
91 #[unsafe(method_family = none)]
92 pub unsafe fn auxiliaryStorage(&self) -> Option<Retained<VZMacAuxiliaryStorage>>;
93
94 #[cfg(feature = "VZMacAuxiliaryStorage")]
95 #[unsafe(method(setAuxiliaryStorage:))]
97 #[unsafe(method_family = none)]
98 pub unsafe fn setAuxiliaryStorage(&self, auxiliary_storage: Option<&VZMacAuxiliaryStorage>);
99 );
100}
101
102#[cfg(feature = "VZPlatformConfiguration")]
104impl VZMacPlatformConfiguration {
105 extern_methods!(
106 #[unsafe(method(new))]
107 #[unsafe(method_family = new)]
108 pub unsafe fn new() -> Retained<Self>;
109 );
110}