objc2_virtualization/generated/VZBootLoader.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 of boot loader configuration.
11 ///
12 /// VZVirtualMachineConfiguration requires a boot loader defining how to start the virtual machine.
13 /// VZBootLoader is the abstract base class of boot loader definitions.
14 ///
15 /// Don't instantiate VZBootLoader directly, instead use its subclass VZEFIBootLoader, VZLinuxBootLoader, or VZMacOSBootLoader.
16 ///
17 ///
18 /// See: VZEFIBootLoader
19 ///
20 /// See: VZLinuxBootLoader
21 ///
22 /// See: VZMacOSBootLoader
23 ///
24 /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzbootloader?language=objc)
25 #[unsafe(super(NSObject))]
26 #[derive(Debug, PartialEq, Eq, Hash)]
27 pub struct VZBootLoader;
28);
29
30unsafe impl NSCopying for VZBootLoader {}
31
32unsafe impl CopyingHelper for VZBootLoader {
33 type Result = Self;
34}
35
36unsafe impl NSObjectProtocol for VZBootLoader {}
37
38impl VZBootLoader {
39 extern_methods!(
40 #[unsafe(method(new))]
41 #[unsafe(method_family = new)]
42 pub unsafe fn new() -> Retained<Self>;
43
44 #[unsafe(method(init))]
45 #[unsafe(method_family = init)]
46 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
47 );
48}