objc2_virtualization/generated/
VZVmnetNetworkDeviceAttachment.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    /// Network device attachment that allows custom network topology.
10    ///
11    /// This attachment is backed by a logical network which is created and customized through
12    /// the vmnet framework APIs to allow custom network topology, which allows multiple virtual
13    /// machines to appear on the same network and connect with each other.
14    ///
15    ///
16    /// See: VZNetworkDeviceConfiguration
17    ///
18    /// See: VZVirtioNetworkDeviceConfiguration
19    ///
20    /// See also [Apple's documentation](https://developer.apple.com/documentation/virtualization/vzvmnetnetworkdeviceattachment?language=objc)
21    #[unsafe(super(VZNetworkDeviceAttachment, NSObject))]
22    #[derive(Debug, PartialEq, Eq, Hash)]
23    #[cfg(feature = "VZNetworkDeviceAttachment")]
24    pub struct VZVmnetNetworkDeviceAttachment;
25);
26
27#[cfg(feature = "VZNetworkDeviceAttachment")]
28extern_conformance!(
29    unsafe impl NSObjectProtocol for VZVmnetNetworkDeviceAttachment {}
30);
31
32#[cfg(feature = "VZNetworkDeviceAttachment")]
33impl VZVmnetNetworkDeviceAttachment {
34    extern_methods!();
35}
36
37/// Methods declared on superclass `VZNetworkDeviceAttachment`.
38#[cfg(feature = "VZNetworkDeviceAttachment")]
39impl VZVmnetNetworkDeviceAttachment {
40    extern_methods!(
41        #[unsafe(method(new))]
42        #[unsafe(method_family = new)]
43        pub unsafe fn new() -> Retained<Self>;
44
45        #[unsafe(method(init))]
46        #[unsafe(method_family = init)]
47        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
48    );
49}