objc2_virtualization/generated/
VZMacOSBootLoader.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    /// Boot loader configuration for booting macOS on Apple Silicon.
11    ///
12    /// You must use a VZMacPlatformConfiguration in conjunction with the macOS boot loader.
13    /// It is invalid to use it with any other platform configuration.
14    ///
15    /// See: VZMacPlatformConfiguration
16    ///
17    /// See: VZVirtualMachineConfiguration.platform.
18    ///
19    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzmacosbootloader?language=objc)
20    #[unsafe(super(VZBootLoader, NSObject))]
21    #[derive(Debug, PartialEq, Eq, Hash)]
22    #[cfg(feature = "VZBootLoader")]
23    pub struct VZMacOSBootLoader;
24);
25
26#[cfg(feature = "VZBootLoader")]
27unsafe impl NSCopying for VZMacOSBootLoader {}
28
29#[cfg(feature = "VZBootLoader")]
30unsafe impl CopyingHelper for VZMacOSBootLoader {
31    type Result = Self;
32}
33
34#[cfg(feature = "VZBootLoader")]
35unsafe impl NSObjectProtocol for VZMacOSBootLoader {}
36
37#[cfg(feature = "VZBootLoader")]
38impl VZMacOSBootLoader {
39    extern_methods!(
40        /// Create a VZMacOSBootLoader.
41        #[unsafe(method(init))]
42        #[unsafe(method_family = init)]
43        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
44    );
45}
46
47/// Methods declared on superclass `VZBootLoader`.
48#[cfg(feature = "VZBootLoader")]
49impl VZMacOSBootLoader {
50    extern_methods!(
51        #[unsafe(method(new))]
52        #[unsafe(method_family = new)]
53        pub unsafe fn new() -> Retained<Self>;
54    );
55}