objc2_virtualization/generated/
VZPlatformConfiguration.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    /// Base class for a platform configuration.
11    ///
12    /// VZPlatformConfiguration should not be instantiated directly.
13    /// One of its subclasses should be used instead.
14    ///
15    ///
16    /// See: VZGenericPlatformConfiguration
17    ///
18    /// See: VZMacPlatformConfiguration.
19    ///
20    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzplatformconfiguration?language=objc)
21    #[unsafe(super(NSObject))]
22    #[derive(Debug, PartialEq, Eq, Hash)]
23    pub struct VZPlatformConfiguration;
24);
25
26unsafe impl NSCopying for VZPlatformConfiguration {}
27
28unsafe impl CopyingHelper for VZPlatformConfiguration {
29    type Result = Self;
30}
31
32unsafe impl NSObjectProtocol for VZPlatformConfiguration {}
33
34impl VZPlatformConfiguration {
35    extern_methods!(
36        #[unsafe(method(new))]
37        #[unsafe(method_family = new)]
38        pub unsafe fn new() -> Retained<Self>;
39
40        #[unsafe(method(init))]
41        #[unsafe(method_family = init)]
42        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43    );
44}