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")]
27extern_conformance!(
28    unsafe impl NSCopying for VZMacOSBootLoader {}
29);
30
31#[cfg(feature = "VZBootLoader")]
32unsafe impl CopyingHelper for VZMacOSBootLoader {
33    type Result = Self;
34}
35
36#[cfg(feature = "VZBootLoader")]
37extern_conformance!(
38    unsafe impl NSObjectProtocol for VZMacOSBootLoader {}
39);
40
41#[cfg(feature = "VZBootLoader")]
42impl VZMacOSBootLoader {
43    extern_methods!(
44        /// Create a VZMacOSBootLoader.
45        #[unsafe(method(init))]
46        #[unsafe(method_family = init)]
47        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
48    );
49}
50
51/// Methods declared on superclass `VZBootLoader`.
52#[cfg(feature = "VZBootLoader")]
53impl VZMacOSBootLoader {
54    extern_methods!(
55        #[unsafe(method(new))]
56        #[unsafe(method_family = new)]
57        pub unsafe fn new() -> Retained<Self>;
58    );
59}