objc2-virtualization 0.3.2

Bindings to the Virtualization framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// Base class of boot loader configuration.
    ///
    /// VZVirtualMachineConfiguration requires a boot loader defining how to start the virtual machine.
    /// VZBootLoader is the abstract base class of boot loader definitions.
    ///
    /// Don't instantiate VZBootLoader directly, instead use its subclass VZEFIBootLoader, VZLinuxBootLoader, or VZMacOSBootLoader.
    ///
    ///
    /// See: VZEFIBootLoader
    ///
    /// See: VZLinuxBootLoader
    ///
    /// See: VZMacOSBootLoader
    ///
    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzbootloader?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct VZBootLoader;
);

extern_conformance!(
    unsafe impl NSCopying for VZBootLoader {}
);

unsafe impl CopyingHelper for VZBootLoader {
    type Result = Self;
}

extern_conformance!(
    unsafe impl NSObjectProtocol for VZBootLoader {}
);

impl VZBootLoader {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;

        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
    );
}