objc2_virtualization/generated/VZMemoryBalloonDevice.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::*;
5
6use crate::*;
7
8extern_class!(
9 /// Base class representing a memory balloon device in a virtual machine.
10 ///
11 /// VZMemoryBalloonDevice should not be instantiated directly.
12 ///
13 /// Memory balloon devices are first configured on the VZVirtualMachineConfiguration through a subclass of VZMemoryBalloonDeviceConfiguration.
14 /// When a VZVirtualMachine is created from the configuration, the memory balloon devices are available through the VZVirtualMachine.memoryBalloonDevices property.
15 ///
16 /// The real type of VZMemoryBalloonDevice corresponds to the type used by the configuration.
17 /// For example, a VZVirtioTraditionalMemoryBalloonDeviceConfiguration leads to a device of type VZVirtioTraditionalMemoryBalloonDevice.
18 ///
19 /// See: VZVirtioTraditionalMemoryBalloonDevice
20 ///
21 /// See: VZVirtioTraditionalMemoryBalloonDeviceConfiguration
22 ///
23 /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzmemoryballoondevice?language=objc)
24 #[unsafe(super(NSObject))]
25 #[derive(Debug, PartialEq, Eq, Hash)]
26 pub struct VZMemoryBalloonDevice;
27);
28
29extern_conformance!(
30 unsafe impl NSObjectProtocol for VZMemoryBalloonDevice {}
31);
32
33impl VZMemoryBalloonDevice {
34 extern_methods!(
35 #[unsafe(method(new))]
36 #[unsafe(method_family = new)]
37 pub unsafe fn new() -> Retained<Self>;
38
39 #[unsafe(method(init))]
40 #[unsafe(method_family = init)]
41 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
42 );
43}