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
30extern_conformance!(
31    unsafe impl NSCopying for VZBootLoader {}
32);
33
34unsafe impl CopyingHelper for VZBootLoader {
35    type Result = Self;
36}
37
38extern_conformance!(
39    unsafe impl NSObjectProtocol for VZBootLoader {}
40);
41
42impl VZBootLoader {
43    extern_methods!(
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new() -> Retained<Self>;
47
48        #[unsafe(method(init))]
49        #[unsafe(method_family = init)]
50        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
51    );
52}